提交 5b9063b1 编写于 作者: M Michael Hennerich 提交者: Dmitry Torokhov

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

Signed-off-by: NMichael Hennerich <michael.hennerich@analog.com>
Signed-off-by: NDmitry Torokhov <dtor@mail.ru>
上级 b9cc510b
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册