Skip to content

Commit

Permalink
Input: ad714xx-spi - force SPI bus into the default 8-bit mode
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
  • Loading branch information
Michael Hennerich authored and Dmitry Torokhov committed Aug 22, 2011
1 parent b9cc510 commit 5b9063b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions drivers/input/misc/ad714x-spi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 5b9063b

Please sign in to comment.