aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/input/misc/hisi_powerkey.c
diff options
context:
space:
mode:
authorGuenter Roeck <linux@roeck-us.net>2017-01-21 23:44:18 -0800
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2017-01-21 23:51:56 -0800
commita0d86ecd23a9e8ae36e274191e55068cc4d10129 (patch)
treea3fcc68705966e595224b44bad519e6dae194a09 /drivers/input/misc/hisi_powerkey.c
parentInput: keyboard - use local variables consistently (diff)
downloadlinux-dev-a0d86ecd23a9e8ae36e274191e55068cc4d10129.tar.xz
linux-dev-a0d86ecd23a9e8ae36e274191e55068cc4d10129.zip
Input: misc - use local variables consistently
If a function declares a variable to access a structure element, use it consistently. Signed-off-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to '')
-rw-r--r--drivers/input/misc/hisi_powerkey.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/drivers/input/misc/hisi_powerkey.c b/drivers/input/misc/hisi_powerkey.c
index 675539c529ce..c4c42124a059 100644
--- a/drivers/input/misc/hisi_powerkey.c
+++ b/drivers/input/misc/hisi_powerkey.c
@@ -75,9 +75,9 @@ static int hi65xx_powerkey_probe(struct platform_device *pdev)
struct input_dev *input;
int irq, i, error;
- input = devm_input_allocate_device(&pdev->dev);
+ input = devm_input_allocate_device(dev);
if (!input) {
- dev_err(&pdev->dev, "failed to allocate input device\n");
+ dev_err(dev, "failed to allocate input device\n");
return -ENOMEM;
}
@@ -111,12 +111,11 @@ static int hi65xx_powerkey_probe(struct platform_device *pdev)
error = input_register_device(input);
if (error) {
- dev_err(&pdev->dev, "failed to register input device: %d\n",
- error);
+ dev_err(dev, "failed to register input device: %d\n", error);
return error;
}
- device_init_wakeup(&pdev->dev, 1);
+ device_init_wakeup(dev, 1);
return 0;
}