Skip to content

Commit

Permalink
Input: tca8418_keypad - use dev_get_platdata() to retrieve platform data
Browse files Browse the repository at this point in the history
We need to use proper accessor functions instead of directly poking into
various structures.

Reviewed-by: Alban Bedel <alban.bedel@avionic-design.de>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
  • Loading branch information
Dmitry Torokhov committed Nov 29, 2012
1 parent efce8a4 commit cdbe8a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/input/keyboard/tca8418_keypad.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit cdbe8a8

Please sign in to comment.