diff mbox

[U-Boot,v5,2/3] spi: omap3: Make local functions as static

Message ID 1456841783-24081-3-git-send-email-christophe-h.ricard@st.com
State Accepted
Commit 03661d85f06eae6a6ae3a126a4dcb16ee8ab052c
Delegated to: Jagannadha Sutradharudu Teki
Headers show

Commit Message

Christophe Ricard March 1, 2016, 2:16 p.m. UTC
Attach static on local defined functions.

Cc: Tom Rini <trini@konsulko.com>
Cc: Simon Glass <sjg@chromium.org>
Cc: Christophe Ricard <christophe-h.ricard@st.com>
Signed-off-by: Jagan Teki <jteki@openedev.com>
Signed-off-by: Christophe Ricard <christophe-h.ricard@st.com>
---

Changes in v5: None
Changes in v4: None
Changes in v3: None
Changes in v2: None

 drivers/spi/omap3_spi.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
diff mbox

Patch

diff --git a/drivers/spi/omap3_spi.c b/drivers/spi/omap3_spi.c
index e2cfbac..4ae2471 100644
--- a/drivers/spi/omap3_spi.c
+++ b/drivers/spi/omap3_spi.c
@@ -304,8 +304,8 @@  void spi_release_bus(struct spi_slave *slave)
 	spi_reset(ds);
 }
 
-int omap3_spi_write(struct spi_slave *slave, unsigned int len, const void *txp,
-		    unsigned long flags)
+static int omap3_spi_write(struct spi_slave *slave, unsigned int len,
+			   const void *txp, unsigned long flags)
 {
 	struct omap3_spi_slave *ds = to_omap3_spi(slave);
 	int i;
@@ -358,8 +358,8 @@  int omap3_spi_write(struct spi_slave *slave, unsigned int len, const void *txp,
 	return 0;
 }
 
-int omap3_spi_read(struct spi_slave *slave, unsigned int len, void *rxp,
-		   unsigned long flags)
+static int omap3_spi_read(struct spi_slave *slave, unsigned int len,
+			  void *rxp, unsigned long flags)
 {
 	struct omap3_spi_slave *ds = to_omap3_spi(slave);
 	int i;
@@ -412,8 +412,8 @@  int omap3_spi_read(struct spi_slave *slave, unsigned int len, void *rxp,
 }
 
 /*McSPI Transmit Receive Mode*/
-int omap3_spi_txrx(struct spi_slave *slave, unsigned int len,
-		   const void *txp, void *rxp, unsigned long flags)
+static int omap3_spi_txrx(struct spi_slave *slave, unsigned int len,
+			  const void *txp, void *rxp, unsigned long flags)
 {
 	struct omap3_spi_slave *ds = to_omap3_spi(slave);
 	ulong start;