Input: touchscreen - drop calls to platform_set_drvdata and i2c_set_clientdata
authorGuenter Roeck <linux@roeck-us.net>
Sun, 22 Jan 2017 07:33:01 +0000 (23:33 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Sun, 22 Jan 2017 07:51:53 +0000 (23:51 -0800)
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>
drivers/input/touchscreen/88pm860x-ts.c
drivers/input/touchscreen/colibri-vf50-ts.c
drivers/input/touchscreen/egalax_ts.c
drivers/input/touchscreen/max11801_ts.c
drivers/input/touchscreen/sx8654.c

index 251ff2aa0633170a7c1bcf09c1ba194893a53cd9..7ed828a51f4c87883ca4258a5cc1ca9cad375dcc 100644 (file)
@@ -240,8 +240,6 @@ static int pm860x_touch_probe(struct platform_device *pdev)
        if (!touch)
                return -ENOMEM;
 
-       platform_set_drvdata(pdev, touch);
-
        touch->idev = devm_input_allocate_device(&pdev->dev);
        if (!touch->idev) {
                dev_err(&pdev->dev, "Failed to allocate input device!\n");
@@ -285,7 +283,6 @@ static int pm860x_touch_probe(struct platform_device *pdev)
                return ret;
        }
 
-       platform_set_drvdata(pdev, touch);
        return 0;
 }
 
index 69828d015d45ffa4747368e79f6fa5f47108c0c9..69c08acae26485ad1ea0e6850fe339393532c041 100644 (file)
@@ -311,8 +311,6 @@ static int vf50_ts_probe(struct platform_device *pdev)
                return -ENOMEM;
        }
 
-       platform_set_drvdata(pdev, touchdev);
-
        input->name = DRIVER_NAME;
        input->id.bustype = BUS_HOST;
        input->dev.parent = dev;
index 1afc08b08155548236bbcbcf095cf3c82949d67a..3592a946950b1b78db243dcf01582196b43edb5f 100644 (file)
@@ -229,7 +229,6 @@ static int egalax_ts_probe(struct i2c_client *client,
        if (error)
                return error;
 
-       i2c_set_clientdata(client, ts);
        return 0;
 }
 
index 82079cde849c802a058b7b3cb60a4e3295579394..d87b89da114e785bd628c84bcec8d3c16027c951 100644 (file)
@@ -216,7 +216,6 @@ static int max11801_ts_probe(struct i2c_client *client,
        if (error)
                return error;
 
-       i2c_set_clientdata(client, data);
        return 0;
 }
 
index 642f4a53de509f2f240f4cd5279ce2749d235455..ed29db3ec731e582a4fdd919e37c7be7e2af135e 100644 (file)
@@ -253,7 +253,6 @@ static int sx8654_probe(struct i2c_client *client,
        if (error)
                return error;
 
-       i2c_set_clientdata(client, sx8654);
        return 0;
 }