projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
efce8a4
)
Input: tca8418_keypad - use dev_get_platdata() to retrieve platform data
author
Dmitry Torokhov
<
[email protected]
>
Wed, 14 Nov 2012 16:12:05 +0000
(08:12 -0800)
committer
Dmitry Torokhov
<
[email protected]
>
Thu, 29 Nov 2012 17:30:03 +0000
(09:30 -0800)
We need to use proper accessor functions instead of directly poking into
various structures.
Reviewed-by: Alban Bedel <
[email protected]
>
Signed-off-by: Dmitry Torokhov <
[email protected]
>
drivers/input/keyboard/tca8418_keypad.c
patch
|
blob
|
history
diff --git
a/drivers/input/keyboard/tca8418_keypad.c
b/drivers/input/keyboard/tca8418_keypad.c
index 3bb981af8ac4c83af68951f30e0d7ad1400dcb0b..ab41a2ea30557e37e213ed0e7d012332e5ca0031 100644
(file)
--- 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;