diff options
| author | Michael Hennerich <michael.hennerich@analog.com> | 2011-08-22 00:04:12 -0400 |
|---|---|---|
| committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2011-08-22 12:59:06 -0400 |
| commit | 5b9063b19caaffe7135e1f9b8b22174ded0f586b (patch) | |
| tree | e93a30c0af580f3ea2a44049c6cec0b97f997931 | |
| parent | b9cc510b395543cb7dba89c76421d23ed9e85f95 (diff) | |
Input: ad714xx-spi - force SPI bus into the default 8-bit mode
Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
| -rw-r--r-- | drivers/input/misc/ad714x-spi.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/input/misc/ad714x-spi.c b/drivers/input/misc/ad714x-spi.c index 4120dd549305..da83ac9bed7e 100644 --- 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, | |||
| 54 | static int __devinit ad714x_spi_probe(struct spi_device *spi) | 54 | static int __devinit ad714x_spi_probe(struct spi_device *spi) |
| 55 | { | 55 | { |
| 56 | struct ad714x_chip *chip; | 56 | struct ad714x_chip *chip; |
| 57 | int err; | ||
| 58 | |||
| 59 | spi->bits_per_word = 8; | ||
| 60 | err = spi_setup(spi); | ||
| 61 | if (err < 0) | ||
| 62 | return err; | ||
| 57 | 63 | ||
| 58 | chip = ad714x_probe(&spi->dev, BUS_SPI, spi->irq, | 64 | chip = ad714x_probe(&spi->dev, BUS_SPI, spi->irq, |
| 59 | ad714x_spi_read, ad714x_spi_write); | 65 | ad714x_spi_read, ad714x_spi_write); |
