diff options
Diffstat (limited to 'drivers/input/touchscreen/penmount.c')
| -rw-r--r-- | drivers/input/touchscreen/penmount.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/input/touchscreen/penmount.c b/drivers/input/touchscreen/penmount.c index f7370109d43e..6c7d0c2c76cc 100644 --- a/drivers/input/touchscreen/penmount.c +++ b/drivers/input/touchscreen/penmount.c | |||
| @@ -46,7 +46,7 @@ struct pm { | |||
| 46 | }; | 46 | }; |
| 47 | 47 | ||
| 48 | static irqreturn_t pm_interrupt(struct serio *serio, | 48 | static irqreturn_t pm_interrupt(struct serio *serio, |
| 49 | unsigned char data, unsigned int flags, struct pt_regs *regs) | 49 | unsigned char data, unsigned int flags) |
| 50 | { | 50 | { |
| 51 | struct pm *pm = serio_get_drvdata(serio); | 51 | struct pm *pm = serio_get_drvdata(serio); |
| 52 | struct input_dev *dev = pm->dev; | 52 | struct input_dev *dev = pm->dev; |
| @@ -55,7 +55,6 @@ static irqreturn_t pm_interrupt(struct serio *serio, | |||
| 55 | 55 | ||
| 56 | if (pm->data[0] & 0x80) { | 56 | if (pm->data[0] & 0x80) { |
| 57 | if (PM_MAX_LENGTH == ++pm->idx) { | 57 | if (PM_MAX_LENGTH == ++pm->idx) { |
| 58 | input_regs(dev, regs); | ||
| 59 | input_report_abs(dev, ABS_X, pm->data[2] * 128 + pm->data[1]); | 58 | input_report_abs(dev, ABS_X, pm->data[2] * 128 + pm->data[1]); |
| 60 | input_report_abs(dev, ABS_Y, pm->data[4] * 128 + pm->data[3]); | 59 | input_report_abs(dev, ABS_Y, pm->data[4] * 128 + pm->data[3]); |
| 61 | input_report_key(dev, BTN_TOUCH, !!(pm->data[0] & 0x40)); | 60 | input_report_key(dev, BTN_TOUCH, !!(pm->data[0] & 0x40)); |
