Message ID | 1274263274.6138.6.camel@mhenneri-D02.ad.analog.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/drivers/input/touchscreen/ad7879.c b/drivers/input/touchscreen/ad7879.c index 794d070..ff490c0 100644 --- a/drivers/input/touchscreen/ad7879.c +++ b/drivers/input/touchscreen/ad7879.c @@ -715,6 +715,16 @@ static int __devinit ad7879_probe(struct spi_device *spi) return -EINVAL; } + if (spi->bits_per_word != 16) { + spi->bits_per_word = 16; + error = spi_setup(spi); + if (error) { + dev_dbg(&spi->dev, + "spi master doesn't support 16 bits/word\n"); + return error; + } + } + ts = kzalloc(sizeof(struct ad7879), GFP_KERNEL); if (!ts)