Title: [8715] trunk/drivers/input/touchscreen/ad7877.c: fix spi word size to 16-bit
- Revision
- 8715
- Author
- hennerich
- Date
- 2010-05-17 06:43:43 -0400 (Mon, 17 May 2010)
Log Message
fix spi word size to 16-bit
Modified Paths
Diff
Modified: trunk/drivers/input/touchscreen/ad7877.c (8714 => 8715)
--- trunk/drivers/input/touchscreen/ad7877.c 2010-05-17 10:40:07 UTC (rev 8714)
+++ trunk/drivers/input/touchscreen/ad7877.c 2010-05-17 10:43:43 UTC (rev 8715)
@@ -670,6 +670,11 @@
return -EINVAL;
}
+ if (spi->bits_per_word != 16) {
+ spi->bits_per_word = 16;
+ spi_setup(spi);
+ }
+
ts = kzalloc(sizeof(struct ad7877), GFP_KERNEL);
input_dev = input_allocate_device();
if (!ts || !input_dev) {
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
https://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits