Input: iqs5xx - remove redundant dev_set_drvdata call
authorAxel Lin <axel.lin@ingics.com>
Thu, 23 May 2019 20:45:21 +0000 (13:45 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Thu, 23 May 2019 20:54:44 +0000 (13:54 -0700)
Calling i2c_set_clientdata() is enough.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Acked-by: Jeff LaBundy <jeff@labundy.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/touchscreen/iqs5xx.c

index b832fe0626453ce8c8dd6104a131211db0b5bfc8..158707897c2dd8ba10020dc8ffbc83643db3e174 100644 (file)
@@ -1054,8 +1054,6 @@ static int iqs5xx_probe(struct i2c_client *client,
        if (!iqs5xx)
                return -ENOMEM;
 
-       dev_set_drvdata(&client->dev, iqs5xx);
-
        i2c_set_clientdata(client, iqs5xx);
        iqs5xx->client = client;