Skip to content

Commit 8300445

Browse files
groeckdtor
authored andcommitted
Input: touchscreen - drop calls to platform_set_drvdata and i2c_set_clientdata
There is no call to i2c_get_clientdata(), platform_get_drvdata(), or dev_get_drvdata() in any of the drivers in this patch. Signed-off-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
1 parent 4cd216c commit 8300445

5 files changed

Lines changed: 0 additions & 8 deletions

File tree

‎drivers/input/touchscreen/88pm860x-ts.c‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -240,8 +240,6 @@ static int pm860x_touch_probe(struct platform_device *pdev)
240240
if (!touch)
241241
return -ENOMEM;
242242

243-
platform_set_drvdata(pdev, touch);
244-
245243
touch->idev = devm_input_allocate_device(&pdev->dev);
246244
if (!touch->idev) {
247245
dev_err(&pdev->dev, "Failed to allocate input device!\n");
@@ -285,7 +283,6 @@ static int pm860x_touch_probe(struct platform_device *pdev)
285283
return ret;
286284
}
287285

288-
platform_set_drvdata(pdev, touch);
289286
return 0;
290287
}
291288

‎drivers/input/touchscreen/colibri-vf50-ts.c‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -311,8 +311,6 @@ static int vf50_ts_probe(struct platform_device *pdev)
311311
return -ENOMEM;
312312
}
313313

314-
platform_set_drvdata(pdev, touchdev);
315-
316314
input->name = DRIVER_NAME;
317315
input->id.bustype = BUS_HOST;
318316
input->dev.parent = dev;

‎drivers/input/touchscreen/egalax_ts.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,6 @@ static int egalax_ts_probe(struct i2c_client *client,
229229
if (error)
230230
return error;
231231

232-
i2c_set_clientdata(client, ts);
233232
return 0;
234233
}
235234

‎drivers/input/touchscreen/max11801_ts.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,6 @@ static int max11801_ts_probe(struct i2c_client *client,
216216
if (error)
217217
return error;
218218

219-
i2c_set_clientdata(client, data);
220219
return 0;
221220
}
222221

‎drivers/input/touchscreen/sx8654.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,6 @@ static int sx8654_probe(struct i2c_client *client,
253253
if (error)
254254
return error;
255255

256-
i2c_set_clientdata(client, sx8654);
257256
return 0;
258257
}
259258

0 commit comments

Comments
 (0)