aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/input/mouse/elantech.h
diff options
context:
space:
mode:
authorJJ Ding <jj_ding@emc.com.tw>2011-09-09 13:27:42 -0400
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2011-09-09 13:34:40 -0400
commit8a360d09b14514139b883d970cd3a1b0b63e6717 (patch)
treecc6740ad56793278d82dfb08f19caf108d69b96c /drivers/input/mouse/elantech.h
parent230282a77bcec97f4d0a54e50a44caab5eb39d5c (diff)
Input: elantech - remove ETP_EDGE_FUZZ_V2
Don't try to be too clever and remove ETP_EDGE_FUZZ_V2. X, Y ranges should be just the raw resolution of the device. Otherwise, they can cause underflow on the Y axis. Suggested-by: Éric Piel <eric.piel@tremplin-utc.net> Signed-off-by: JJ Ding <jj_ding@emc.com.tw> Acked-by: Daniel Kurtz <djkurtz@chromium.org> Acked-by: Éric Piel <eric.piel@tremplin-utc.net> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'drivers/input/mouse/elantech.h')
-rw-r--r--drivers/input/mouse/elantech.h15
1 files changed, 6 insertions, 9 deletions
diff --git a/drivers/input/mouse/elantech.h b/drivers/input/mouse/elantech.h
index b54ea27d10a..d9e614409f9 100644
--- a/drivers/input/mouse/elantech.h
+++ b/drivers/input/mouse/elantech.h
@@ -66,16 +66,13 @@
66#define ETP_YMAX_V1 (384 - ETP_EDGE_FUZZ_V1) 66#define ETP_YMAX_V1 (384 - ETP_EDGE_FUZZ_V1)
67 67
68/* 68/*
69 * It seems the resolution for hardware version 2 doubled. 69 * The resolution for older v2 hardware doubled.
70 * Hence the X and Y ranges are doubled too. 70 * (newer v2's firmware provides command so we can query)
71 * The bezel around the pad also appears to be smaller
72 */ 71 */
73#define ETP_EDGE_FUZZ_V2 8 72#define ETP_XMIN_V2 0
74 73#define ETP_XMAX_V2 1152
75#define ETP_XMIN_V2 ( 0 + ETP_EDGE_FUZZ_V2) 74#define ETP_YMIN_V2 0
76#define ETP_XMAX_V2 (1152 - ETP_EDGE_FUZZ_V2) 75#define ETP_YMAX_V2 768
77#define ETP_YMIN_V2 ( 0 + ETP_EDGE_FUZZ_V2)
78#define ETP_YMAX_V2 ( 768 - ETP_EDGE_FUZZ_V2)
79 76
80#define ETP_PMIN_V2 0 77#define ETP_PMIN_V2 0
81#define ETP_PMAX_V2 255 78#define ETP_PMAX_V2 255