summaryrefslogtreecommitdiffstats
path: root/drivers/input/keyboard/davinci_keyscan.c
diff options
context:
space:
mode:
authorGuenter Roeck <linux@roeck-us.net>2017-01-21 23:40:45 -0800
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2017-01-21 23:51:54 -0800
commitb4e66e7d1948e0a54a38102462b016ee1ed489c2 (patch)
tree6977133523c8e2b3bbda74dd3207fd3d099f5374 /drivers/input/keyboard/davinci_keyscan.c
parent8300445cc7c14b1532a4891f2d25a649d6437daa (diff)
downloadtalos-op-linux-b4e66e7d1948e0a54a38102462b016ee1ed489c2.tar.gz
talos-op-linux-b4e66e7d1948e0a54a38102462b016ee1ed489c2.zip
Input: keyboard - 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 'drivers/input/keyboard/davinci_keyscan.c')
-rw-r--r--drivers/input/keyboard/davinci_keyscan.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/input/keyboard/davinci_keyscan.c b/drivers/input/keyboard/davinci_keyscan.c
index f363d1d2907a..b20a5d044caa 100644
--- a/drivers/input/keyboard/davinci_keyscan.c
+++ b/drivers/input/keyboard/davinci_keyscan.c
@@ -172,7 +172,7 @@ static int __init davinci_ks_probe(struct platform_device *pdev)
struct input_dev *key_dev;
struct resource *res, *mem;
struct device *dev = &pdev->dev;
- struct davinci_ks_platform_data *pdata = dev_get_platdata(&pdev->dev);
+ struct davinci_ks_platform_data *pdata = dev_get_platdata(dev);
int error, i;
if (pdata->device_enable) {
@@ -255,7 +255,7 @@ static int __init davinci_ks_probe(struct platform_device *pdev)
key_dev->name = "davinci_keyscan";
key_dev->phys = "davinci_keyscan/input0";
- key_dev->dev.parent = &pdev->dev;
+ key_dev->dev.parent = dev;
key_dev->id.bustype = BUS_HOST;
key_dev->id.vendor = 0x0001;
key_dev->id.product = 0x0001;
OpenPOWER on IntegriCloud