From: Dmitry Torokhov Date: Wed, 14 Nov 2012 16:12:05 +0000 (-0800) Subject: Input: tca8418_keypad - use dev_get_platdata() to retrieve platform data X-Git-Tag: v3.8~1^2~6^2~7 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cdbe8a86379b9002598a4d14791dc8e790b1f5f5;p=profile%2Fcommon%2Fkernel-common.git Input: tca8418_keypad - use dev_get_platdata() to retrieve platform data We need to use proper accessor functions instead of directly poking into various structures. Reviewed-by: Alban Bedel Signed-off-by: Dmitry Torokhov --- diff --git a/drivers/input/keyboard/tca8418_keypad.c b/drivers/input/keyboard/tca8418_keypad.c index 3bb981a..ab41a2e 100644 --- a/drivers/input/keyboard/tca8418_keypad.c +++ b/drivers/input/keyboard/tca8418_keypad.c @@ -283,7 +283,7 @@ static int tca8418_keypad_probe(struct i2c_client *client, { struct device *dev = &client->dev; const struct tca8418_keypad_platform_data *pdata = - client->dev.platform_data; + dev_get_platdata(dev); struct tca8418_keypad *keypad_data; struct input_dev *input; const struct matrix_keymap_data *keymap_data = NULL;