Thread (11 messages) 11 messages, 2 authors, 2012-11-29

Re: [PATCH 2/5] Input: tca8418_keypad - use dev_get_platdata() to retrieve platform data

From: Alban Bedel <hidden>
Date: 2012-11-29 13:48:42

On Wed, 14 Nov 2012 08:48:05 -0800
Dmitry Torokhov [off-list ref] wrote:
We need to use proper accessor functions instead of directly poking into
various structures.

Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Reviewed-by: Alban Bedel <redacted>
quoted hunk ↗ jump to hunk
---
 drivers/input/keyboard/tca8418_keypad.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/input/keyboard/tca8418_keypad.c b/drivers/input/keyboard/tca8418_keypad.c
index 4618ce0..7f2869f 100644
--- a/drivers/input/keyboard/tca8418_keypad.c
+++ b/drivers/input/keyboard/tca8418_keypad.c
@@ -283,7 +283,7 @@ static int __devinit 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;
  
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help