diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-08-05 18:13:27 +0200 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2013-08-13 07:32:30 +0200 |
commit | 846fc20ff76ae10793c0f02b67f0308234fb7539 (patch) | |
tree | c5a1f3e0e76444df6ac95e18137ac5b4ffc84767 /drivers/input/joystick/maplecontrol.c | |
parent | Input: pwm-beeper - add CONFIG_PM_SLEEP to suspend/resume (diff) | |
download | linux-846fc20ff76ae10793c0f02b67f0308234fb7539.tar.xz linux-846fc20ff76ae10793c0f02b67f0308234fb7539.zip |
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/maplecontrol.c')
-rw-r--r-- | drivers/input/joystick/maplecontrol.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/input/joystick/maplecontrol.c b/drivers/input/joystick/maplecontrol.c index 59c10ec5a2a1..8aa6e4c497da 100644 --- a/drivers/input/joystick/maplecontrol.c +++ b/drivers/input/joystick/maplecontrol.c @@ -61,7 +61,7 @@ static void dc_pad_callback(struct mapleq *mq) static int dc_pad_open(struct input_dev *dev) { - struct dc_pad *pad = dev->dev.platform_data; + struct dc_pad *pad = dev_get_platdata(&dev->dev); maple_getcond_callback(pad->mdev, dc_pad_callback, HZ/20, MAPLE_FUNC_CONTROLLER); @@ -71,7 +71,7 @@ static int dc_pad_open(struct input_dev *dev) static void dc_pad_close(struct input_dev *dev) { - struct dc_pad *pad = dev->dev.platform_data; + struct dc_pad *pad = dev_get_platdata(&dev->dev); maple_getcond_callback(pad->mdev, dc_pad_callback, 0, MAPLE_FUNC_CONTROLLER); |