Title: [8714] trunk/drivers/input/touchscreen/ad7879-spi.c: fix spi word size to 16-bit
- Revision
- 8714
- Author
- hennerich
- Date
- 2010-05-17 06:40:07 -0400 (Mon, 17 May 2010)
Log Message
fix spi word size to 16-bit
Modified Paths
Diff
Modified: trunk/drivers/input/touchscreen/ad7879-spi.c (8713 => 8714)
--- trunk/drivers/input/touchscreen/ad7879-spi.c 2010-05-17 10:39:01 UTC (rev 8713)
+++ trunk/drivers/input/touchscreen/ad7879-spi.c 2010-05-17 10:40:07 UTC (rev 8714)
@@ -7,6 +7,7 @@
*/
#include <linux/input.h> /* BUS_SPI */
+#include <linux/slab.h>
#include <linux/spi/spi.h>
#include "ad7879.h"
@@ -128,6 +129,11 @@
return -EINVAL;
}
+ if (spi->bits_per_word != 16) {
+ spi->bits_per_word = 16;
+ spi_setup(spi);
+ }
+
return ad7879_probe(&spi->dev, &bdata, AD7879_DEVID, BUS_SPI);
}
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
https://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits