Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 78f7f367 authored by Kwangwoo Lee's avatar Kwangwoo Lee Committed by Dmitry Torokhov
Browse files

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: default avatarKwangwoo Lee <kwangwoo.lee@gmail.com>
Signed-off-by: default avatarDmitry Torokhov <dtor@mail.ru>
parent 05cebd38
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
	}