Attach static on local defined functions.

Cc: Tom Rini <tr...@konsulko.com>
Cc: Simon Glass <s...@chromium.org>
Cc: Christophe Ricard <christophe-h.ric...@st.com>
Signed-off-by: Jagan Teki <jt...@openedev.com>
---
 drivers/spi/omap3_spi.c | 19 ++++++-------------
 1 file changed, 6 insertions(+), 13 deletions(-)

diff --git a/drivers/spi/omap3_spi.c b/drivers/spi/omap3_spi.c
index 12fa290..8b0f665 100644
--- a/drivers/spi/omap3_spi.c
+++ b/drivers/spi/omap3_spi.c
@@ -105,13 +105,6 @@ static inline struct omap3_spi_slave *to_omap3_spi(struct 
spi_slave *slave)
        return container_of(slave, struct omap3_spi_slave, slave);
 }
 
-int omap3_spi_txrx(struct spi_slave *slave, unsigned int len, const void *txp,
-                       void *rxp, unsigned long flags);
-int omap3_spi_write(struct spi_slave *slave, unsigned int len, const void *txp,
-                   unsigned long flags);
-int omap3_spi_read(struct spi_slave *slave, unsigned int len, void *rxp,
-                  unsigned long flags);
-
 static void spi_reset(struct omap3_spi_slave *ds)
 {
        unsigned int tmp;
@@ -312,8 +305,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;
@@ -366,8 +359,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;
@@ -420,8 +413,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;
-- 
1.9.1

_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

Reply via email to