summaryrefslogtreecommitdiff
path: root/drivers/input/touchscreen/mk712.c
diff options
context:
space:
mode:
authorVojtech Pavlik <vojtech@suse.cz>2005-02-08 19:35:59 +0100
committerVojtech Pavlik <vojtech@suse.cz>2005-02-08 19:35:59 +0100
commit53b212368ef98ccdba811c35ab9f59bfb13bb2c4 (patch)
treed1d8251cc3bb58ea6cf14529e92c012bd63343c6 /drivers/input/touchscreen/mk712.c
parent2f5f5b04475716c60e9e65cc8bf6bee75864b917 (diff)
input: Change touchscreen drivers NOT to rescale their values
to a 4:3 shape. Signed-off-by: Vojtech Pavlik <vojtech@suse.cz>
Diffstat (limited to 'drivers/input/touchscreen/mk712.c')
-rw-r--r--drivers/input/touchscreen/mk712.c6
1 files changed, 3 insertions, 3 deletions
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,