Input: misc - drop calls to platform_set_drvdata and i2c_set_clientdata
authorGuenter Roeck <linux@roeck-us.net>
Sun, 22 Jan 2017 07:32:34 +0000 (23:32 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Sun, 22 Jan 2017 07:51:51 +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/misc/arizona-haptics.c
drivers/input/misc/atmel_captouch.c
drivers/input/misc/da9063_onkey.c
drivers/input/misc/e3x0-button.c
drivers/input/misc/twl4030-pwrbutton.c

index 9829363345372add0e3a5fd6812ff49a6d527aba..de1b64703c8c3fd7e86779bb69d12f8457941f86 100644 (file)
@@ -196,8 +196,6 @@ static int arizona_haptics_probe(struct platform_device *pdev)
                return ret;
        }
 
-       platform_set_drvdata(pdev, haptics);
-
        return 0;
 }
 
index 941265415a893d24438c19b120fef3c868f97c50..c4c0f4bb7627a001b360ba9e90b155e827e4017a 100644 (file)
@@ -191,7 +191,6 @@ static int atmel_captouch_probe(struct i2c_client *client,
                return -ENOMEM;
 
        capdev->client = client;
-       i2c_set_clientdata(client, capdev);
 
        err = atmel_read(capdev, REG_KEY_STATE,
                            &capdev->prev_btn, sizeof(capdev->prev_btn));
index b4ff1e86d3d30fee8a4e3ff4e33dd066c6a869b0..3e9c353d82effcd4a6e29396470bde27e5f19000 100644 (file)
@@ -287,7 +287,6 @@ static int da9063_onkey_probe(struct platform_device *pdev)
                return error;
        }
 
-       platform_set_drvdata(pdev, onkey);
        return 0;
 }
 
index 13bfca8a7b166b75c4ecd0e19b3ac9c3892231d4..b0b374112db3d133fa6d5845db2b24f0acd75ec3 100644 (file)
@@ -120,7 +120,6 @@ static int e3x0_button_probe(struct platform_device *pdev)
                return error;
        }
 
-       platform_set_drvdata(pdev, input);
        device_init_wakeup(&pdev->dev, 1);
        return 0;
 }
index 603fc2fadf057d9bb08f9a373e0bf6b20440dc18..54162d2cbcfce2ef48aa55dc1bfaaddb531d20c0 100644 (file)
@@ -85,7 +85,6 @@ static int twl4030_pwrbutton_probe(struct platform_device *pdev)
                return err;
        }
 
-       platform_set_drvdata(pdev, pwr);
        device_init_wakeup(&pdev->dev, true);
 
        return 0;