mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Sascha Hauer <s.hauer@pengutronix.de>
To: Barebox List <barebox@lists.infradead.org>
Subject: [PATCH 10/12] spi: omap: make locally used functions static
Date: Mon, 19 Nov 2018 09:44:52 +0100	[thread overview]
Message-ID: <20181119084454.17599-11-s.hauer@pengutronix.de> (raw)
In-Reply-To: <20181119084454.17599-1-s.hauer@pengutronix.de>

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
---
 drivers/spi/omap3_spi.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/spi/omap3_spi.c b/drivers/spi/omap3_spi.c
index f63039718f..beea772aa9 100644
--- a/drivers/spi/omap3_spi.c
+++ b/drivers/spi/omap3_spi.c
@@ -67,7 +67,7 @@ static void spi_reset(struct spi_master *master)
 	writel(OMAP3_MCSPI_WAKEUPENABLE_WKEN, regs + OMAP3_MCSPI_WAKEUPENABLE);
 }
 
-int spi_claim_bus(struct spi_device *spi)
+static int spi_claim_bus(struct spi_device *spi)
 {
 	struct spi_master *master = spi->master;
 	struct omap3_spi_master *omap3_master = container_of(master, struct omap3_spi_master, master);
@@ -144,7 +144,7 @@ int spi_claim_bus(struct spi_device *spi)
 	return 0;
 }
 
-int omap3_spi_write(struct spi_device *spi, unsigned int len, const u8 *txp,
+static int omap3_spi_write(struct spi_device *spi, unsigned int len, const u8 *txp,
 		    unsigned long flags)
 {
 	struct spi_master *master = spi->master;
@@ -198,7 +198,7 @@ int omap3_spi_write(struct spi_device *spi, unsigned int len, const u8 *txp,
 	return 0;
 }
 
-int omap3_spi_read(struct spi_device *spi, unsigned int len, u8 *rxp,
+static int omap3_spi_read(struct spi_device *spi, unsigned int len, u8 *rxp,
 		   unsigned long flags)
 {
 	struct spi_master *master = spi->master;
@@ -245,7 +245,7 @@ int omap3_spi_read(struct spi_device *spi, unsigned int len, u8 *rxp,
 	return 0;
 }
 
-int spi_xfer(struct spi_device *spi, struct spi_transfer *t, unsigned long flags)
+static int spi_xfer(struct spi_device *spi, struct spi_transfer *t, unsigned long flags)
 {
 	struct spi_master *master = spi->master;
 	struct omap3_spi_master *omap3_master = container_of(master, struct omap3_spi_master, master);
-- 
2.19.1


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

  parent reply	other threads:[~2018-11-19  8:45 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-11-19  8:44 [PATCH 00/12] More -Wmissing-prototypes fixes Sascha Hauer
2018-11-19  8:44 ` [PATCH 01/12] ARM: start: Add missing prototype Sascha Hauer
2018-11-19  8:44 ` [PATCH 02/12] ARM: samsung: remove unused function Sascha Hauer
2018-11-19  8:44 ` [PATCH 03/12] ARM: samsung: make locally used function static Sascha Hauer
2018-11-19  8:44 ` [PATCH 04/12] ARM: samsung: provide prototype for nand_boot() Sascha Hauer
2018-11-19  8:44 ` [PATCH 05/12] ARM: samsung: Add missing include Sascha Hauer
2018-11-19  8:44 ` [PATCH 06/12] state: remove unused function Sascha Hauer
2018-11-19  8:44 ` [PATCH 07/12] mtd: nand: omap: Add header file for bch decoder Sascha Hauer
2018-11-19  8:44 ` [PATCH 08/12] net: cpsw: Make locally used function static Sascha Hauer
2018-11-19  8:44 ` [PATCH 09/12] usb: musb: Add missing includes Sascha Hauer
2018-11-19  8:44 ` Sascha Hauer [this message]
2018-11-19  8:44 ` [PATCH 11/12] bus: omap-gpmc: make locally used function static Sascha Hauer
2018-11-19  8:44 ` [PATCH 12/12] ARM: omap: Add missing includes Sascha Hauer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20181119084454.17599-11-s.hauer@pengutronix.de \
    --to=s.hauer@pengutronix.de \
    --cc=barebox@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox