From: Jagan Teki Date: Tue, 1 Mar 2016 14:16:21 +0000 (+0100) Subject: spi: omap3: Make local functions as static X-Git-Tag: v2016.05-rc1~419^2~1 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=03661d85f06eae6a6ae3a126a4dcb16ee8ab052c;p=u-boot spi: omap3: Make local functions as static Attach static on local defined functions. Cc: Tom Rini Cc: Simon Glass Signed-off-by: Jagan Teki Signed-off-by: Christophe Ricard --- diff --git a/drivers/spi/omap3_spi.c b/drivers/spi/omap3_spi.c index e043c49051..eb6ad371f0 100644 --- a/drivers/spi/omap3_spi.c +++ b/drivers/spi/omap3_spi.c @@ -306,8 +306,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; @@ -360,8 +360,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; @@ -414,8 +414,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;