diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-05-10 18:09:30 -0400 |
---|---|---|
committer | Grant Likely <grant.likely@secretlab.ca> | 2011-05-20 02:43:07 -0400 |
commit | 0c4a1590189b426814748d2e03b95541852b3af6 (patch) | |
tree | b4b1d2eee1ea2b5d1700df4519e182cca816607b /drivers/spi/spi.c | |
parent | 521999bd4a8c47a86136b9d8223a9480f5906db8 (diff) |
spi: Use void pointers for data in simple SPI I/O operations
Currently the simple SPI I/O operations all take pointers to u8 * buffers
to operate on. This creates needless type compatibility issues and the
underlying spi_transfer structure uses void pointers anyway so convert the
API over to take void pointers too.
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Diffstat (limited to 'drivers/spi/spi.c')
-rw-r--r-- | drivers/spi/spi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/spi/spi.c b/drivers/spi/spi.c index 82b9a428c323..2e13a14bba3f 100644 --- a/drivers/spi/spi.c +++ b/drivers/spi/spi.c | |||
@@ -1047,8 +1047,8 @@ static u8 *buf; | |||
1047 | * spi_{async,sync}() calls with dma-safe buffers. | 1047 | * spi_{async,sync}() calls with dma-safe buffers. |
1048 | */ | 1048 | */ |
1049 | int spi_write_then_read(struct spi_device *spi, | 1049 | int spi_write_then_read(struct spi_device *spi, |
1050 | const u8 *txbuf, unsigned n_tx, | 1050 | const void *txbuf, unsigned n_tx, |
1051 | u8 *rxbuf, unsigned n_rx) | 1051 | void *rxbuf, unsigned n_rx) |
1052 | { | 1052 | { |
1053 | static DEFINE_MUTEX(lock); | 1053 | static DEFINE_MUTEX(lock); |
1054 | 1054 | ||