Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 250518
b: refs/heads/master
c: e223cc7
h: refs/heads/master
v: v3
  • Loading branch information
Michael Hennerich authored and Dmitry Torokhov committed May 17, 2011
1 parent 1385061 commit 0db8c5a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 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: dc5f4f5e9a3434bfe925f05db9db2908fbab771f
refs/heads/master: e223cc7e96ddbcd32c4a0314d42ae56ade8008e5
8 changes: 4 additions & 4 deletions trunk/drivers/input/misc/ad714x.c
Original file line number Diff line number Diff line change
Expand Up @@ -158,10 +158,10 @@ static void ad714x_use_com_int(struct ad714x_chip *ad714x,
unsigned short data;
unsigned short mask;

mask = ((1 << (end_stage + 1)) - 1) - (1 << start_stage);
mask = ((1 << (end_stage + 1)) - 1) - ((1 << start_stage) - 1);

ad714x->read(ad714x->dev, STG_COM_INT_EN_REG, &data);
data |= 1 << start_stage;
data |= 1 << end_stage;
ad714x->write(ad714x->dev, STG_COM_INT_EN_REG, data);

ad714x->read(ad714x->dev, STG_HIGH_INT_EN_REG, &data);
Expand All @@ -175,10 +175,10 @@ static void ad714x_use_thr_int(struct ad714x_chip *ad714x,
unsigned short data;
unsigned short mask;

mask = ((1 << (end_stage + 1)) - 1) - (1 << start_stage);
mask = ((1 << (end_stage + 1)) - 1) - ((1 << start_stage) - 1);

ad714x->read(ad714x->dev, STG_COM_INT_EN_REG, &data);
data &= ~(1 << start_stage);
data &= ~(1 << end_stage);
ad714x->write(ad714x->dev, STG_COM_INT_EN_REG, data);

ad714x->read(ad714x->dev, STG_HIGH_INT_EN_REG, &data);
Expand Down

0 comments on commit 0db8c5a

Please sign in to comment.