提交 78f7f367 编写于 作者: K Kwangwoo Lee 提交者: Dmitry Torokhov

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: NKwangwoo Lee <kwangwoo.lee@gmail.com>
Signed-off-by: NDmitry Torokhov <dtor@mail.ru>
上级 05cebd38
...@@ -256,7 +256,7 @@ static int tsc2007_probe(struct i2c_client *client, ...@@ -256,7 +256,7 @@ static int tsc2007_probe(struct i2c_client *client,
struct input_dev *input_dev; struct input_dev *input_dev;
int err; int err;
if (!pdata) { if (!pdata || !pdata->get_pendown_state) {
dev_err(&client->dev, "platform data is required!\n"); dev_err(&client->dev, "platform data is required!\n");
return -EINVAL; return -EINVAL;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册