diff options
| -rw-r--r-- | drivers/input/touchscreen/gunze.c | 8 | ||||
| -rw-r--r-- | drivers/input/touchscreen/mk712.c | 6 |
2 files changed, 7 insertions, 7 deletions
diff --git a/drivers/input/touchscreen/gunze.c b/drivers/input/touchscreen/gunze.c index a520d46d1f0b..c9d0a153671c 100644 --- a/drivers/input/touchscreen/gunze.c +++ b/drivers/input/touchscreen/gunze.c @@ -74,8 +74,8 @@ static void gunze_process_packet(struct gunze* gunze, struct pt_regs *regs) } input_regs(dev, regs); - input_report_abs(dev, ABS_X, simple_strtoul(gunze->data + 1, NULL, 10) * 4); - input_report_abs(dev, ABS_Y, 3072 - simple_strtoul(gunze->data + 6, NULL, 10) * 3); + input_report_abs(dev, ABS_X, simple_strtoul(gunze->data + 1, NULL, 10)); + input_report_abs(dev, ABS_Y, 1024 - simple_strtoul(gunze->data + 6, NULL, 10)); input_report_key(dev, BTN_TOUCH, gunze->data[0] == 'T'); input_sync(dev); } @@ -128,8 +128,8 @@ static int gunze_connect(struct serio *serio, struct serio_driver *drv) init_input_dev(&gunze->dev); gunze->dev.evbit[0] = BIT(EV_KEY) | BIT(EV_ABS); gunze->dev.keybit[LONG(BTN_TOUCH)] = BIT(BTN_TOUCH); - input_set_abs_params(&gunze->dev, ABS_X, 96, 4000, 0, 0); - input_set_abs_params(&gunze->dev, ABS_Y, 72, 3000, 0, 0); + input_set_abs_params(&gunze->dev, ABS_X, 24, 1000, 0, 0); + input_set_abs_params(&gunze->dev, ABS_Y, 24, 1000, 0, 0); gunze->serio = serio; diff --git a/drivers/input/touchscreen/mk712.c b/drivers/input/touchscreen/mk712.c index 0e3c30a83759..aa27d68e9d1e 100644 --- a/drivers/input/touchscreen/mk712.c +++ b/drivers/input/touchscreen/mk712.c @@ -117,8 +117,8 @@ static irqreturn_t mk712_interrupt(int irq, void *dev_id, struct pt_regs *regs) end: - last_x = inw(mk712_io + MK712_X) & 0x0fff; - last_y = (inw(mk712_io + MK712_Y) & 0x0fff) * 3 / 4; + last_x = inw(mk712_io + MK712_X) & 0x0fff; + last_y = inw(mk712_io + MK712_Y) & 0x0fff; input_sync(&mk712_dev); spin_unlock(&mk712_lock); return IRQ_HANDLED; @@ -168,7 +168,7 @@ static struct input_dev mk712_dev = { .name = "ICS MicroClock MK712 TouchScreen", .phys = "isa0260/input0", .absmin = { [ABS_X] = 0, [ABS_Y] = 0 }, - .absmax = { [ABS_X] = 0xfff, [ABS_Y] = 0xbff }, + .absmax = { [ABS_X] = 0xfff, [ABS_Y] = 0xfff }, .absfuzz = { [ABS_X] = 88, [ABS_Y] = 88 }, .id = { .bustype = BUS_ISA, |
