diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2018-11-19 09:39:26 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2018-11-19 09:45:23 +0100 |
commit | 6f4ad0586dca7584bfa9e16af63a3b2575f12bb3 (patch) | |
tree | 9d7d356278997fe91d65ed2e5429c96e0be4cb5b /drivers/spi | |
parent | f7a7a63e549a7205d54993d04a89e6232e88970f (diff) | |
download | barebox-6f4ad0586dca7584bfa9e16af63a3b2575f12bb3.tar.gz barebox-6f4ad0586dca7584bfa9e16af63a3b2575f12bb3.tar.xz |
spi: omap: make locally used functions static
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/spi')
-rw-r--r-- | drivers/spi/omap3_spi.c | 8 |
1 files 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); |