* [PATCH 25/35] Input: touchscreen: use dev_get_platdata()
@ 2013-07-30 8:15 Jingoo Han
2013-08-02 23:31 ` Duan Fugang-B38611
0 siblings, 1 reply; 2+ messages in thread
From: Jingoo Han @ 2013-07-30 8:15 UTC (permalink / raw)
To: 'Dmitry Torokhov'
Cc: 'Dmitry Torokhov', linux-input, 'Jingoo Han'
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>
---
drivers/input/joystick/as5011.c | 2 +-
drivers/input/joystick/maplecontrol.c | 4 ++--
2 files changed, 3 insertions(+), 3 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;
diff --git a/drivers/input/joystick/maplecontrol.c b/drivers/input/joystick/maplecontrol.c
index 59c10ec..8aa6e4c 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);
--
1.7.10.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* RE: [PATCH 25/35] Input: touchscreen: use dev_get_platdata()
2013-07-30 8:15 [PATCH 25/35] Input: touchscreen: use dev_get_platdata() Jingoo Han
@ 2013-08-02 23:31 ` Duan Fugang-B38611
0 siblings, 0 replies; 2+ messages in thread
From: Duan Fugang-B38611 @ 2013-08-02 23:31 UTC (permalink / raw)
To: Jingoo Han, 'Dmitry Torokhov'
Cc: 'Dmitry Torokhov', linux-input
From: linux-input-owner@vger.kernel.org [mailto:linux-input-owner@vger.kernel.org] On Behalf Of Jingoo Han
Data: Tuesday, July 30, 2013 4:16 PM
> Use the wrapper function for retrieving the platform data instead of
> accessing dev->platform_data directly.
The serial patches look good. But for the serial patch set, it is better to submit one patch summary for them.
Acked-by: Fugang Duan <B38611@freescale.com>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-08-02 23:31 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-07-30 8:15 [PATCH 25/35] Input: touchscreen: use dev_get_platdata() Jingoo Han
2013-08-02 23:31 ` Duan Fugang-B38611
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.