提交 a5e5da2b 编写于 作者: D Dmitry Torokhov

Input: max11801_ts - drop call to input_set_drvdata()

Nobody calls input_get_drvdata() so setting it is not required.
Signed-off-by: NDmitry Torokhov <dmitry.torokhov@gmail.com>
上级 2de8b411
...@@ -199,7 +199,6 @@ static int max11801_ts_probe(struct i2c_client *client, ...@@ -199,7 +199,6 @@ static int max11801_ts_probe(struct i2c_client *client,
__set_bit(BTN_TOUCH, input_dev->keybit); __set_bit(BTN_TOUCH, input_dev->keybit);
input_set_abs_params(input_dev, ABS_X, 0, MAX11801_MAX_X, 0, 0); input_set_abs_params(input_dev, ABS_X, 0, MAX11801_MAX_X, 0, 0);
input_set_abs_params(input_dev, ABS_Y, 0, MAX11801_MAX_Y, 0, 0); input_set_abs_params(input_dev, ABS_Y, 0, MAX11801_MAX_Y, 0, 0);
input_set_drvdata(input_dev, data);
max11801_ts_phy_init(data); max11801_ts_phy_init(data);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册