diff options
| -rw-r--r-- | drivers/input/touchscreen/ads7846.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/drivers/input/touchscreen/ads7846.c b/drivers/input/touchscreen/ads7846.c index c24946f51256..ab51a8dbdb5a 100644 --- a/drivers/input/touchscreen/ads7846.c +++ b/drivers/input/touchscreen/ads7846.c | |||
| @@ -281,17 +281,25 @@ struct ser_req { | |||
| 281 | u8 command; | 281 | u8 command; |
| 282 | u8 ref_off; | 282 | u8 ref_off; |
| 283 | u16 scratch; | 283 | u16 scratch; |
| 284 | __be16 sample; | ||
| 285 | struct spi_message msg; | 284 | struct spi_message msg; |
| 286 | struct spi_transfer xfer[6]; | 285 | struct spi_transfer xfer[6]; |
| 286 | /* | ||
| 287 | * DMA (thus cache coherency maintenance) requires the | ||
| 288 | * transfer buffers to live in their own cache lines. | ||
| 289 | */ | ||
| 290 | __be16 sample ____cacheline_aligned; | ||
| 287 | }; | 291 | }; |
| 288 | 292 | ||
| 289 | struct ads7845_ser_req { | 293 | struct ads7845_ser_req { |
| 290 | u8 command[3]; | 294 | u8 command[3]; |
| 291 | u8 pwrdown[3]; | 295 | u8 pwrdown[3]; |
| 292 | u8 sample[3]; | ||
| 293 | struct spi_message msg; | 296 | struct spi_message msg; |
| 294 | struct spi_transfer xfer[2]; | 297 | struct spi_transfer xfer[2]; |
| 298 | /* | ||
| 299 | * DMA (thus cache coherency maintenance) requires the | ||
| 300 | * transfer buffers to live in their own cache lines. | ||
| 301 | */ | ||
| 302 | u8 sample[3] ____cacheline_aligned; | ||
| 295 | }; | 303 | }; |
| 296 | 304 | ||
| 297 | static int ads7846_read12_ser(struct device *dev, unsigned command) | 305 | static int ads7846_read12_ser(struct device *dev, unsigned command) |
