projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
05cebd3
)
Input: tsc2007 - make sure platform provides get_pendown_state()
author
Kwangwoo Lee
<kwangwoo.lee@gmail.com>
Sat, 16 May 2009 02:14:35 +0000
(19:14 -0700)
committer
Dmitry Torokhov
<dmitry.torokhov@gmail.com>
Sat, 16 May 2009 02:23:54 +0000
(19:23 -0700)
The platform codes must provide get_pendown_state() for the driver
to work properly.
Signed-off-by: Kwangwoo Lee <kwangwoo.lee@gmail.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/input/touchscreen/tsc2007.c
patch
|
blob
|
history
diff --git
a/drivers/input/touchscreen/tsc2007.c
b/drivers/input/touchscreen/tsc2007.c
index 536668fbda227158beaeb0c7eec9478be72f4d56..edd4f64d1f43c97229fc69dbece9c4233ea8540c 100644
(file)
--- a/
drivers/input/touchscreen/tsc2007.c
+++ b/
drivers/input/touchscreen/tsc2007.c
@@
-256,7
+256,7
@@
static int tsc2007_probe(struct i2c_client *client,
struct input_dev *input_dev;
int err;
- if (!pdata) {
+ if (!pdata
|| !pdata->get_pendown_state
) {
dev_err(&client->dev, "platform data is required!\n");
return -EINVAL;
}