diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-08-05 09:13:27 -0700 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2013-08-12 22:32:30 -0700 |
commit | 846fc20ff76ae10793c0f02b67f0308234fb7539 (patch) | |
tree | c5a1f3e0e76444df6ac95e18137ac5b4ffc84767 /drivers/input/joystick/as5011.c | |
parent | 7f26282f0511839059ca35c0594863575bf7ccf5 (diff) | |
download | op-kernel-dev-846fc20ff76ae10793c0f02b67f0308234fb7539.zip op-kernel-dev-846fc20ff76ae10793c0f02b67f0308234fb7539.tar.gz |
Input: joysticks - use dev_get_platdata()
Use the wrapper function for retrieving the platform data instead of
accessing dev->platform_data directly.
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/input/joystick/as5011.c')
-rw-r--r-- | drivers/input/joystick/as5011.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/joystick/as5011.c b/drivers/input/joystick/as5011.c index 121cd63..13eba2a 100644 --- a/drivers/input/joystick/as5011.c +++ b/drivers/input/joystick/as5011.c @@ -234,7 +234,7 @@ static int as5011_probe(struct i2c_client *client, int irq; int error; - plat_data = client->dev.platform_data; + plat_data = dev_get_platdata(&client->dev); if (!plat_data) return -EINVAL; |