summaryrefslogtreecommitdiff
path: root/drivers/spi
diff options
context:
space:
mode:
authorJagan Teki <jteki@openedev.com>2016-03-01 15:16:21 +0100
committerJagan Teki <jteki@openedev.com>2016-03-14 22:46:28 +0530
commit03661d85f06eae6a6ae3a126a4dcb16ee8ab052c (patch)
tree5ce62f0fe81c92d6c8ec706c92b6b25f2da3d72f /drivers/spi
parent682c172350286151c638e614c5de2b5a7ccc6ea4 (diff)
downloadu-boot-imx-03661d85f06eae6a6ae3a126a4dcb16ee8ab052c.zip
u-boot-imx-03661d85f06eae6a6ae3a126a4dcb16ee8ab052c.tar.gz
u-boot-imx-03661d85f06eae6a6ae3a126a4dcb16ee8ab052c.tar.bz2
spi: omap3: Make local functions as static
Attach static on local defined functions. Cc: Tom Rini <trini@konsulko.com> Cc: Simon Glass <sjg@chromium.org> Signed-off-by: Jagan Teki <jteki@openedev.com> Signed-off-by: Christophe Ricard <christophe-h.ricard@st.com>
Diffstat (limited to 'drivers/spi')
-rw-r--r--drivers/spi/omap3_spi.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/spi/omap3_spi.c b/drivers/spi/omap3_spi.c
index e043c49..eb6ad37 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;