summaryrefslogtreecommitdiff
path: root/drivers/input/touchscreen/ar1021_i2c.c
diff options
context:
space:
mode:
authorGuenter Roeck <linux@roeck-us.net>2017-01-18 22:20:18 +0300
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2017-01-18 22:33:05 +0300
commita8e90be161099a6e4d985a7e4a43f9acc8adfcae (patch)
tree2af103b40852fcf61dd0827201137c1f6e9e2208 /drivers/input/touchscreen/ar1021_i2c.c
parent32237677fb6a15f08aadfe2bb4129b2de7e7caab (diff)
downloadlinux-a8e90be161099a6e4d985a7e4a43f9acc8adfcae.tar.xz
Input: ar1021_i2c - drop unnecessary call to i2c_set_clientdata
There is no call to i2c_get_clientdata() or dev_get_drvdata(). Drop the unnecessary call to i2c_set_clientdata(). Signed-off-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/input/touchscreen/ar1021_i2c.c')
-rw-r--r--drivers/input/touchscreen/ar1021_i2c.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/input/touchscreen/ar1021_i2c.c b/drivers/input/touchscreen/ar1021_i2c.c
index 71b5a634cf6d..6562b17117f7 100644
--- a/drivers/input/touchscreen/ar1021_i2c.c
+++ b/drivers/input/touchscreen/ar1021_i2c.c
@@ -127,7 +127,6 @@ static int ar1021_i2c_probe(struct i2c_client *client,
return error;
}
- i2c_set_clientdata(client, ar1021);
return 0;
}