diff options
Diffstat (limited to 'drivers/input/touchscreen/touchwin.c')
-rw-r--r-- | drivers/input/touchscreen/touchwin.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/input/touchscreen/touchwin.c b/drivers/input/touchscreen/touchwin.c index a7b4c755958e..9911820fa2fe 100644 --- a/drivers/input/touchscreen/touchwin.c +++ b/drivers/input/touchscreen/touchwin.c | |||
@@ -60,7 +60,7 @@ struct tw { | |||
60 | }; | 60 | }; |
61 | 61 | ||
62 | static irqreturn_t tw_interrupt(struct serio *serio, | 62 | static irqreturn_t tw_interrupt(struct serio *serio, |
63 | unsigned char data, unsigned int flags, struct pt_regs *regs) | 63 | unsigned char data, unsigned int flags) |
64 | { | 64 | { |
65 | struct tw *tw = serio_get_drvdata(serio); | 65 | struct tw *tw = serio_get_drvdata(serio); |
66 | struct input_dev *dev = tw->dev; | 66 | struct input_dev *dev = tw->dev; |
@@ -70,7 +70,6 @@ static irqreturn_t tw_interrupt(struct serio *serio, | |||
70 | tw->data[tw->idx++] = data; | 70 | tw->data[tw->idx++] = data; |
71 | /* verify length and that the two Y's are the same */ | 71 | /* verify length and that the two Y's are the same */ |
72 | if (tw->idx == TW_LENGTH && tw->data[1] == tw->data[2]) { | 72 | if (tw->idx == TW_LENGTH && tw->data[1] == tw->data[2]) { |
73 | input_regs(dev, regs); | ||
74 | input_report_abs(dev, ABS_X, tw->data[0]); | 73 | input_report_abs(dev, ABS_X, tw->data[0]); |
75 | input_report_abs(dev, ABS_Y, tw->data[1]); | 74 | input_report_abs(dev, ABS_Y, tw->data[1]); |
76 | input_report_key(dev, BTN_TOUCH, 1); | 75 | input_report_key(dev, BTN_TOUCH, 1); |