summaryrefslogtreecommitdiff
path: root/drivers/input/touchscreen/s3c2410_ts.c
diff options
context:
space:
mode:
authorGuenter Roeck <linux@roeck-us.net>2017-01-22 10:46:47 +0300
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2017-01-22 10:53:17 +0300
commitd7ddf15414dd598b9b875664e6b7aebe6c988f5d (patch)
tree3abd8a2b6d967614fc1fb2c67706e38794b52539 /drivers/input/touchscreen/s3c2410_ts.c
parentad56814fccfba3fe3613fa4d9accff3816786f3c (diff)
downloadlinux-d7ddf15414dd598b9b875664e6b7aebe6c988f5d.tar.xz
Input: touchscreen - 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/touchscreen/s3c2410_ts.c')
-rw-r--r--drivers/input/touchscreen/s3c2410_ts.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/touchscreen/s3c2410_ts.c b/drivers/input/touchscreen/s3c2410_ts.c
index a4a103e1d11b..41d58e88cc8a 100644
--- a/drivers/input/touchscreen/s3c2410_ts.c
+++ b/drivers/input/touchscreen/s3c2410_ts.c
@@ -250,7 +250,7 @@ static int s3c2410ts_probe(struct platform_device *pdev)
ts.dev = dev;
- info = dev_get_platdata(&pdev->dev);
+ info = dev_get_platdata(dev);
if (!info) {
dev_err(dev, "no platform data, cannot attach\n");
return -EINVAL;