Commit 8300445c authored by Guenter Roeck's avatar Guenter Roeck Committed by Dmitry Torokhov

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: default avatarGuenter Roeck <linux@roeck-us.net>
Signed-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
parent 4cd216cb
...@@ -240,8 +240,6 @@ static int pm860x_touch_probe(struct platform_device *pdev) ...@@ -240,8 +240,6 @@ static int pm860x_touch_probe(struct platform_device *pdev)
if (!touch) if (!touch)
return -ENOMEM; return -ENOMEM;
platform_set_drvdata(pdev, touch);
touch->idev = devm_input_allocate_device(&pdev->dev); touch->idev = devm_input_allocate_device(&pdev->dev);
if (!touch->idev) { if (!touch->idev) {
dev_err(&pdev->dev, "Failed to allocate input device!\n"); dev_err(&pdev->dev, "Failed to allocate input device!\n");
...@@ -285,7 +283,6 @@ static int pm860x_touch_probe(struct platform_device *pdev) ...@@ -285,7 +283,6 @@ static int pm860x_touch_probe(struct platform_device *pdev)
return ret; return ret;
} }
platform_set_drvdata(pdev, touch);
return 0; return 0;
} }
......
...@@ -311,8 +311,6 @@ static int vf50_ts_probe(struct platform_device *pdev) ...@@ -311,8 +311,6 @@ static int vf50_ts_probe(struct platform_device *pdev)
return -ENOMEM; return -ENOMEM;
} }
platform_set_drvdata(pdev, touchdev);
input->name = DRIVER_NAME; input->name = DRIVER_NAME;
input->id.bustype = BUS_HOST; input->id.bustype = BUS_HOST;
input->dev.parent = dev; input->dev.parent = dev;
......
...@@ -229,7 +229,6 @@ static int egalax_ts_probe(struct i2c_client *client, ...@@ -229,7 +229,6 @@ static int egalax_ts_probe(struct i2c_client *client,
if (error) if (error)
return error; return error;
i2c_set_clientdata(client, ts);
return 0; return 0;
} }
......
...@@ -216,7 +216,6 @@ static int max11801_ts_probe(struct i2c_client *client, ...@@ -216,7 +216,6 @@ static int max11801_ts_probe(struct i2c_client *client,
if (error) if (error)
return error; return error;
i2c_set_clientdata(client, data);
return 0; return 0;
} }
......
...@@ -253,7 +253,6 @@ static int sx8654_probe(struct i2c_client *client, ...@@ -253,7 +253,6 @@ static int sx8654_probe(struct i2c_client *client,
if (error) if (error)
return error; return error;
i2c_set_clientdata(client, sx8654);
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment