Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 368086
b: refs/heads/master
c: 257a1ec
h: refs/heads/master
v: v3
  • Loading branch information
Sebastien Royen authored and Dmitry Torokhov committed Mar 31, 2013
1 parent 45b45c3 commit f4d33fc
Show file tree
Hide file tree
Showing 2 changed files with 4 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: 80e3e5328a9978fae3654ead657e9df653508713
refs/heads/master: 257a1ec603538036a2f2ae7e8433d775b7a7588a
6 changes: 3 additions & 3 deletions trunk/drivers/input/misc/mma8450.c
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,9 @@ static void mma8450_poll(struct input_polled_dev *dev)
if (ret < 0)
return;

x = ((buf[1] << 4) & 0xff0) | (buf[0] & 0xf);
y = ((buf[3] << 4) & 0xff0) | (buf[2] & 0xf);
z = ((buf[5] << 4) & 0xff0) | (buf[4] & 0xf);
x = ((int)(s8)buf[1] << 4) | (buf[0] & 0xf);
y = ((int)(s8)buf[3] << 4) | (buf[2] & 0xf);
z = ((int)(s8)buf[5] << 4) | (buf[4] & 0xf);

input_report_abs(dev->input, ABS_X, x);
input_report_abs(dev->input, ABS_Y, y);
Expand Down

0 comments on commit f4d33fc

Please sign in to comment.