diff options
author | Geert Uytterhoeven <geert+renesas@linux-m68k.org> | 2014-01-12 07:59:06 -0500 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-01-13 06:20:21 -0500 |
commit | 269ccca8ec1a3991e07eaf5f90326134bd17781a (patch) | |
tree | 522c4a4866d1ddf5e4cb1215cd7f9b77380ecb78 | |
parent | d3fbd457013c0f6d96de461ce0a9cb1f8b73cd0b (diff) |
spi: Kill superfluous cast in spi_w8r16()
spi_write_then_read() takes a "void *" for rxbuf, so there's no need to
cast the buffer pointer to "u8 *".
Signed-off-by: Geert Uytterhoeven <geert+renesas@linux-m68k.org>
Signed-off-by: Mark Brown <broonie@linaro.org>
-rw-r--r-- | include/linux/spi/spi.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/spi/spi.h b/include/linux/spi/spi.h index 77b529e418d5..21a7251d85ee 100644 --- a/include/linux/spi/spi.h +++ b/include/linux/spi/spi.h | |||
@@ -847,7 +847,7 @@ static inline ssize_t spi_w8r16(struct spi_device *spi, u8 cmd) | |||
847 | ssize_t status; | 847 | ssize_t status; |
848 | u16 result; | 848 | u16 result; |
849 | 849 | ||
850 | status = spi_write_then_read(spi, &cmd, 1, (u8 *) &result, 2); | 850 | status = spi_write_then_read(spi, &cmd, 1, &result, 2); |
851 | 851 | ||
852 | /* return negative errno or unsigned value */ | 852 | /* return negative errno or unsigned value */ |
853 | return (status < 0) ? status : result; | 853 | return (status < 0) ? status : result; |