summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorPhilip Rakity <prakity@marvell.com>2011-10-11 20:54:55 -0700
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2011-10-11 20:56:41 -0700
commit341deefe8f4584b09564193cb46d8cf386f491a5 (patch)
tree6610d3c3c0306e3b1a8e82552f5e426818ff5a57 /include/linux
parent550eca7cafa1c6e2c077afb2211a364a982d8645 (diff)
Input: tsc2007 - make sure that X plate resistance is specified
Abort driver initialization if X plate resistance was not specified in platform data as it will cause pressure to be always calculated as 0, and making userspace ignore touch coordinates. Signed-off-by: Philip Rakity <prakity@marvell.com> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/i2c/tsc2007.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/i2c/tsc2007.h b/include/linux/i2c/tsc2007.h
index 591427a63b0..506a9f7af51 100644
--- a/include/linux/i2c/tsc2007.h
+++ b/include/linux/i2c/tsc2007.h
@@ -5,7 +5,7 @@
struct tsc2007_platform_data {
u16 model; /* 2007. */
- u16 x_plate_ohms;
+ u16 x_plate_ohms; /* must be non-zero value */
u16 max_rt; /* max. resistance above which samples are ignored */
unsigned long poll_delay; /* delay (in ms) after pen-down event
before polling starts */