Commit a0d86ecd authored by Guenter Roeck's avatar Guenter Roeck Committed by Dmitry Torokhov

Input: misc - use local variables consistently

If a function declares a variable to access a structure element,
use it consistently.
Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
Signed-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
parent b4e66e7d
...@@ -538,7 +538,7 @@ static int drv260x_probe(struct i2c_client *client, ...@@ -538,7 +538,7 @@ static int drv260x_probe(struct i2c_client *client,
haptics->input_dev = devm_input_allocate_device(dev); haptics->input_dev = devm_input_allocate_device(dev);
if (!haptics->input_dev) { if (!haptics->input_dev) {
dev_err(&client->dev, "Failed to allocate input device\n"); dev_err(dev, "Failed to allocate input device\n");
return -ENOMEM; return -ENOMEM;
} }
......
...@@ -138,7 +138,7 @@ static int gpio_tilt_polled_probe(struct platform_device *pdev) ...@@ -138,7 +138,7 @@ static int gpio_tilt_polled_probe(struct platform_device *pdev)
input->name = pdev->name; input->name = pdev->name;
input->phys = DRV_NAME"/input0"; input->phys = DRV_NAME"/input0";
input->dev.parent = &pdev->dev; input->dev.parent = dev;
input->id.bustype = BUS_HOST; input->id.bustype = BUS_HOST;
input->id.vendor = 0x0001; input->id.vendor = 0x0001;
......
...@@ -75,9 +75,9 @@ static int hi65xx_powerkey_probe(struct platform_device *pdev) ...@@ -75,9 +75,9 @@ static int hi65xx_powerkey_probe(struct platform_device *pdev)
struct input_dev *input; struct input_dev *input;
int irq, i, error; int irq, i, error;
input = devm_input_allocate_device(&pdev->dev); input = devm_input_allocate_device(dev);
if (!input) { if (!input) {
dev_err(&pdev->dev, "failed to allocate input device\n"); dev_err(dev, "failed to allocate input device\n");
return -ENOMEM; return -ENOMEM;
} }
...@@ -111,12 +111,11 @@ static int hi65xx_powerkey_probe(struct platform_device *pdev) ...@@ -111,12 +111,11 @@ static int hi65xx_powerkey_probe(struct platform_device *pdev)
error = input_register_device(input); error = input_register_device(input);
if (error) { if (error) {
dev_err(&pdev->dev, "failed to register input device: %d\n", dev_err(dev, "failed to register input device: %d\n", error);
error);
return error; return error;
} }
device_init_wakeup(&pdev->dev, 1); device_init_wakeup(dev, 1);
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