Commit 5b9063b1 authored by Michael Hennerich's avatar Michael Hennerich Committed by Dmitry Torokhov

Input: ad714xx-spi - force SPI bus into the default 8-bit mode

Signed-off-by: default avatarMichael Hennerich <michael.hennerich@analog.com>
Signed-off-by: default avatarDmitry Torokhov <dtor@mail.ru>
parent b9cc510b
...@@ -54,6 +54,12 @@ static int ad714x_spi_write(struct device *dev, unsigned short reg, ...@@ -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) static int __devinit ad714x_spi_probe(struct spi_device *spi)
{ {
struct ad714x_chip *chip; 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, chip = ad714x_probe(&spi->dev, BUS_SPI, spi->irq,
ad714x_spi_read, ad714x_spi_write); ad714x_spi_read, ad714x_spi_write);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment