Skip to content

Commit 5b9063b

Browse files
mhennerichdtor
authored andcommitted
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>
1 parent b9cc510 commit 5b9063b

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

‎drivers/input/misc/ad714x-spi.c‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,12 @@ static int ad714x_spi_write(struct device *dev, unsigned short reg,
5454
static int __devinit ad714x_spi_probe(struct spi_device *spi)
5555
{
5656
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;
5763

5864
chip = ad714x_probe(&spi->dev, BUS_SPI, spi->irq,
5965
ad714x_spi_read, ad714x_spi_write);

0 commit comments

Comments
 (0)