Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 190824
b: refs/heads/master
c: 3843384
h: refs/heads/master
v: v3
  • Loading branch information
Oskar Schirmer authored and Dmitry Torokhov committed May 13, 2010
1 parent fa67653 commit ec3dba5
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ef110b24e28f36620f63dab94708a17c7e267358
refs/heads/master: 3843384a055496dfed3c93ae883d964d8290fdab
15 changes: 12 additions & 3 deletions trunk/drivers/input/touchscreen/ad7877.c
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,14 @@ struct ser_req {
u16 reset;
u16 ref_on;
u16 command;
u16 sample;
struct spi_message msg;
struct spi_transfer xfer[6];

/*
* DMA (thus cache coherency maintenance) requires the
* transfer buffers to live in their own cache lines.
*/
u16 sample ____cacheline_aligned;
};

struct ad7877 {
Expand All @@ -182,8 +187,6 @@ struct ad7877 {
u8 averaging;
u8 pen_down_acc_interval;

u16 conversion_data[AD7877_NR_SENSE];

struct spi_transfer xfer[AD7877_NR_SENSE + 2];
struct spi_message msg;

Expand All @@ -195,6 +198,12 @@ struct ad7877 {
spinlock_t lock;
struct timer_list timer; /* P: lock */
unsigned pending:1; /* P: lock */

/*
* DMA (thus cache coherency maintenance) requires the
* transfer buffers to live in their own cache lines.
*/
u16 conversion_data[AD7877_NR_SENSE] ____cacheline_aligned;
};

static int gpio3;
Expand Down

0 comments on commit ec3dba5

Please sign in to comment.