projects
/
kernel
/
kernel-generic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d3fbd45
)
spi: Kill superfluous cast in spi_w8r16()
author
Geert Uytterhoeven
<geert+renesas@linux-m68k.org>
Sun, 12 Jan 2014 12:59:06 +0000
(13:59 +0100)
committer
Mark Brown
<broonie@linaro.org>
Mon, 13 Jan 2014 11:20:21 +0000
(11:20 +0000)
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>
include/linux/spi/spi.h
patch
|
blob
|
history
diff --git
a/include/linux/spi/spi.h
b/include/linux/spi/spi.h
index
77b529e
..
21a7251
100644
(file)
--- 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)
ssize_t status;
u16 result;
- status = spi_write_then_read(spi, &cmd, 1,
(u8 *)
&result, 2);
+ status = spi_write_then_read(spi, &cmd, 1, &result, 2);
/* return negative errno or unsigned value */
return (status < 0) ? status : result;