aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/input/touchscreen/88pm860x-ts.c
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2013-05-23 09:20:26 -0700
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2013-05-23 09:34:17 -0700
commitedbbee595d42f501cb1325d31ab3481d2bc4be0d (patch)
treecf9ce724e3983b3f132a6389f0f4ad2a6332f564 /drivers/input/touchscreen/88pm860x-ts.c
parentInput: misc - use platform_{get,set}_drvdata() (diff)
downloadlinux-dev-edbbee595d42f501cb1325d31ab3481d2bc4be0d.tar.xz
linux-dev-edbbee595d42f501cb1325d31ab3481d2bc4be0d.zip
Input: touchscreen - use platform_{get,set}_drvdata()
Use the wrapper functions for getting and setting the driver data using platform_device instead of using dev_{get,set}_drvdata() with &pdev->dev, so we can directly pass a struct platform_device. Signed-off-by: Jingoo Han <jg1.han@samsung.com> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/input/touchscreen/88pm860x-ts.c')
-rw-r--r--drivers/input/touchscreen/88pm860x-ts.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/touchscreen/88pm860x-ts.c b/drivers/input/touchscreen/88pm860x-ts.c
index e8d457266b71..f7de14a268bf 100644
--- a/drivers/input/touchscreen/88pm860x-ts.c
+++ b/drivers/input/touchscreen/88pm860x-ts.c
@@ -237,7 +237,7 @@ static int pm860x_touch_probe(struct platform_device *pdev)
touch = kzalloc(sizeof(struct pm860x_touch), GFP_KERNEL);
if (touch == NULL)
return -ENOMEM;
- dev_set_drvdata(&pdev->dev, touch);
+ platform_set_drvdata(pdev, touch);
touch->idev = input_allocate_device();
if (touch->idev == NULL) {