summaryrefslogtreecommitdiffstats
path: root/drivers/input/touchscreen/tsc2007.c
diff options
context:
space:
mode:
authorKwangwoo Lee <kwangwoo.lee@gmail.com>2009-05-16 04:14:35 +0200
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2009-05-16 04:23:54 +0200
commit78f7f36711396991431a1d7ceab6103d2c54694c (patch)
treedee83af35aa0180cf23f568f4d5e0132cc51bd72 /drivers/input/touchscreen/tsc2007.c
parentInput: uinput - flush all pending ff effects before destroying device (diff)
downloadlinux-78f7f36711396991431a1d7ceab6103d2c54694c.tar.xz
linux-78f7f36711396991431a1d7ceab6103d2c54694c.zip
Input: tsc2007 - make sure platform provides get_pendown_state()
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>
Diffstat (limited to 'drivers/input/touchscreen/tsc2007.c')
-rw-r--r--drivers/input/touchscreen/tsc2007.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/touchscreen/tsc2007.c b/drivers/input/touchscreen/tsc2007.c
index 536668fbda22..edd4f64d1f43 100644
--- 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;
}