aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/input/keyboard/tm2-touchkey.c
diff options
context:
space:
mode:
authorGuenter Roeck <linux@roeck-us.net>2017-01-22 17:17:40 -0800
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2017-01-22 17:22:25 -0800
commit14fdb924afd9290d43e64eeb2377d51806de1197 (patch)
tree45294cb8c286a7f56cacb552c89686d8a2838a1f /drivers/input/keyboard/tm2-touchkey.c
parentInput: i8042 - add dbg msg when a command can't write its parameter (diff)
downloadlinux-dev-14fdb924afd9290d43e64eeb2377d51806de1197.tar.xz
linux-dev-14fdb924afd9290d43e64eeb2377d51806de1197.zip
Input: keyboard - drop unnecessary calls to input_set_drvdata
If there is no call to dev_get_drvdata() or input_get_drvdata(), the call to input_set_drvdata() is unnecessary and can be dropped. Signed-off-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to '')
-rw-r--r--drivers/input/keyboard/tm2-touchkey.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/input/keyboard/tm2-touchkey.c b/drivers/input/keyboard/tm2-touchkey.c
index 916e2f3a9bbb..485900f953e0 100644
--- a/drivers/input/keyboard/tm2-touchkey.c
+++ b/drivers/input/keyboard/tm2-touchkey.c
@@ -193,8 +193,6 @@ static int tm2_touchkey_probe(struct i2c_client *client,
input_set_capability(touchkey->input_dev, EV_KEY, KEY_PHONE);
input_set_capability(touchkey->input_dev, EV_KEY, KEY_BACK);
- input_set_drvdata(touchkey->input_dev, touchkey);
-
error = input_register_device(touchkey->input_dev);
if (error) {
dev_err(&client->dev,