summaryrefslogtreecommitdiffstats
path: root/drivers/input/mouse/elantech.h
diff options
context:
space:
mode:
authorJJ Ding <jj_ding@emc.com.tw>2011-09-09 10:26:16 -0700
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2011-09-09 10:34:36 -0700
commit230282a77bcec97f4d0a54e50a44caab5eb39d5c (patch)
tree4944a12840bb35cabeef7b63803ed8cb0f4bab1c /drivers/input/mouse/elantech.h
parent461a791765da501f73e3d5957788267101e800d2 (diff)
downloadlinux-230282a77bcec97f4d0a54e50a44caab5eb39d5c.tar.bz2
Input: elantech - use firmware provided x, y ranges
With newer hardware, the touchpad provides range info. Let's use it. 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.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/input/mouse/elantech.h b/drivers/input/mouse/elantech.h
index 1c5894efda5a..b54ea27d10af 100644
--- a/drivers/input/mouse/elantech.h
+++ b/drivers/input/mouse/elantech.h
@@ -93,13 +93,14 @@ struct elantech_data {
unsigned char reg_25;
unsigned char reg_26;
unsigned char debug;
- unsigned char capabilities;
+ unsigned char capabilities[3];
bool paritycheck;
bool jumpy_cursor;
bool reports_pressure;
unsigned char hw_version;
unsigned int fw_version;
unsigned int single_finger_reports;
+ unsigned int y_max;
unsigned char parity[256];
};