projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b9cc510
)
Input: ad714xx-spi - force SPI bus into the default 8-bit mode
author
Michael Hennerich
<
[email protected]
>
Mon, 22 Aug 2011 04:04:12 +0000
(21:04 -0700)
committer
Dmitry Torokhov
<
[email protected]
>
Mon, 22 Aug 2011 16:59:06 +0000
(09:59 -0700)
Signed-off-by: Michael Hennerich <
[email protected]
>
Signed-off-by: Dmitry Torokhov <
[email protected]
>
drivers/input/misc/ad714x-spi.c
patch
|
blob
|
history
diff --git
a/drivers/input/misc/ad714x-spi.c
b/drivers/input/misc/ad714x-spi.c
index 4120dd5493059126b272256b47eba121044e396d..da83ac9bed7edc581c13dde2ee50154deeeb0713 100644
(file)
--- a/
drivers/input/misc/ad714x-spi.c
+++ b/
drivers/input/misc/ad714x-spi.c
@@
-54,6
+54,12
@@
static int ad714x_spi_write(struct device *dev, unsigned short reg,
static int __devinit ad714x_spi_probe(struct spi_device *spi)
{
struct ad714x_chip *chip;
+ int err;
+
+ spi->bits_per_word = 8;
+ err = spi_setup(spi);
+ if (err < 0)
+ return err;
chip = ad714x_probe(&spi->dev, BUS_SPI, spi->irq,
ad714x_spi_read, ad714x_spi_write);