diff options
Diffstat (limited to 'drivers/input/keyboard')
21 files changed, 37 insertions, 29 deletions
diff --git a/drivers/input/keyboard/adp5520-keys.c b/drivers/input/keyboard/adp5520-keys.c index ef26b17fb159..0dc1151d02fb 100644 --- a/drivers/input/keyboard/adp5520-keys.c +++ b/drivers/input/keyboard/adp5520-keys.c | |||
@@ -71,7 +71,7 @@ static int adp5520_keys_notifier(struct notifier_block *nb, | |||
71 | 71 | ||
72 | static int adp5520_keys_probe(struct platform_device *pdev) | 72 | static int adp5520_keys_probe(struct platform_device *pdev) |
73 | { | 73 | { |
74 | struct adp5520_keys_platform_data *pdata = pdev->dev.platform_data; | 74 | struct adp5520_keys_platform_data *pdata = dev_get_platdata(&pdev->dev); |
75 | struct input_dev *input; | 75 | struct input_dev *input; |
76 | struct adp5520_keys *dev; | 76 | struct adp5520_keys *dev; |
77 | int ret, i; | 77 | int ret, i; |
diff --git a/drivers/input/keyboard/adp5588-keys.c b/drivers/input/keyboard/adp5588-keys.c index dbd2047f1641..e3874d3410b4 100644 --- a/drivers/input/keyboard/adp5588-keys.c +++ b/drivers/input/keyboard/adp5588-keys.c | |||
@@ -173,7 +173,7 @@ static int adp5588_build_gpiomap(struct adp5588_kpad *kpad, | |||
173 | static int adp5588_gpio_add(struct adp5588_kpad *kpad) | 173 | static int adp5588_gpio_add(struct adp5588_kpad *kpad) |
174 | { | 174 | { |
175 | struct device *dev = &kpad->client->dev; | 175 | struct device *dev = &kpad->client->dev; |
176 | const struct adp5588_kpad_platform_data *pdata = dev->platform_data; | 176 | const struct adp5588_kpad_platform_data *pdata = dev_get_platdata(dev); |
177 | const struct adp5588_gpio_platform_data *gpio_data = pdata->gpio_data; | 177 | const struct adp5588_gpio_platform_data *gpio_data = pdata->gpio_data; |
178 | int i, error; | 178 | int i, error; |
179 | 179 | ||
@@ -227,7 +227,7 @@ static int adp5588_gpio_add(struct adp5588_kpad *kpad) | |||
227 | static void adp5588_gpio_remove(struct adp5588_kpad *kpad) | 227 | static void adp5588_gpio_remove(struct adp5588_kpad *kpad) |
228 | { | 228 | { |
229 | struct device *dev = &kpad->client->dev; | 229 | struct device *dev = &kpad->client->dev; |
230 | const struct adp5588_kpad_platform_data *pdata = dev->platform_data; | 230 | const struct adp5588_kpad_platform_data *pdata = dev_get_platdata(dev); |
231 | const struct adp5588_gpio_platform_data *gpio_data = pdata->gpio_data; | 231 | const struct adp5588_gpio_platform_data *gpio_data = pdata->gpio_data; |
232 | int error; | 232 | int error; |
233 | 233 | ||
@@ -321,7 +321,8 @@ static irqreturn_t adp5588_irq(int irq, void *handle) | |||
321 | 321 | ||
322 | static int adp5588_setup(struct i2c_client *client) | 322 | static int adp5588_setup(struct i2c_client *client) |
323 | { | 323 | { |
324 | const struct adp5588_kpad_platform_data *pdata = client->dev.platform_data; | 324 | const struct adp5588_kpad_platform_data *pdata = |
325 | dev_get_platdata(&client->dev); | ||
325 | const struct adp5588_gpio_platform_data *gpio_data = pdata->gpio_data; | 326 | const struct adp5588_gpio_platform_data *gpio_data = pdata->gpio_data; |
326 | int i, ret; | 327 | int i, ret; |
327 | unsigned char evt_mode1 = 0, evt_mode2 = 0, evt_mode3 = 0; | 328 | unsigned char evt_mode1 = 0, evt_mode2 = 0, evt_mode3 = 0; |
@@ -424,7 +425,8 @@ static int adp5588_probe(struct i2c_client *client, | |||
424 | const struct i2c_device_id *id) | 425 | const struct i2c_device_id *id) |
425 | { | 426 | { |
426 | struct adp5588_kpad *kpad; | 427 | struct adp5588_kpad *kpad; |
427 | const struct adp5588_kpad_platform_data *pdata = client->dev.platform_data; | 428 | const struct adp5588_kpad_platform_data *pdata = |
429 | dev_get_platdata(&client->dev); | ||
428 | struct input_dev *input; | 430 | struct input_dev *input; |
429 | unsigned int revid; | 431 | unsigned int revid; |
430 | int ret, i; | 432 | int ret, i; |
diff --git a/drivers/input/keyboard/adp5589-keys.c b/drivers/input/keyboard/adp5589-keys.c index 67d12b3427c9..e43efa03f3e7 100644 --- a/drivers/input/keyboard/adp5589-keys.c +++ b/drivers/input/keyboard/adp5589-keys.c | |||
@@ -499,7 +499,7 @@ static int adp5589_build_gpiomap(struct adp5589_kpad *kpad, | |||
499 | static int adp5589_gpio_add(struct adp5589_kpad *kpad) | 499 | static int adp5589_gpio_add(struct adp5589_kpad *kpad) |
500 | { | 500 | { |
501 | struct device *dev = &kpad->client->dev; | 501 | struct device *dev = &kpad->client->dev; |
502 | const struct adp5589_kpad_platform_data *pdata = dev->platform_data; | 502 | const struct adp5589_kpad_platform_data *pdata = dev_get_platdata(dev); |
503 | const struct adp5589_gpio_platform_data *gpio_data = pdata->gpio_data; | 503 | const struct adp5589_gpio_platform_data *gpio_data = pdata->gpio_data; |
504 | int i, error; | 504 | int i, error; |
505 | 505 | ||
@@ -553,7 +553,7 @@ static int adp5589_gpio_add(struct adp5589_kpad *kpad) | |||
553 | static void adp5589_gpio_remove(struct adp5589_kpad *kpad) | 553 | static void adp5589_gpio_remove(struct adp5589_kpad *kpad) |
554 | { | 554 | { |
555 | struct device *dev = &kpad->client->dev; | 555 | struct device *dev = &kpad->client->dev; |
556 | const struct adp5589_kpad_platform_data *pdata = dev->platform_data; | 556 | const struct adp5589_kpad_platform_data *pdata = dev_get_platdata(dev); |
557 | const struct adp5589_gpio_platform_data *gpio_data = pdata->gpio_data; | 557 | const struct adp5589_gpio_platform_data *gpio_data = pdata->gpio_data; |
558 | int error; | 558 | int error; |
559 | 559 | ||
@@ -658,7 +658,7 @@ static int adp5589_setup(struct adp5589_kpad *kpad) | |||
658 | { | 658 | { |
659 | struct i2c_client *client = kpad->client; | 659 | struct i2c_client *client = kpad->client; |
660 | const struct adp5589_kpad_platform_data *pdata = | 660 | const struct adp5589_kpad_platform_data *pdata = |
661 | client->dev.platform_data; | 661 | dev_get_platdata(&client->dev); |
662 | u8 (*reg) (u8) = kpad->var->reg; | 662 | u8 (*reg) (u8) = kpad->var->reg; |
663 | unsigned char evt_mode1 = 0, evt_mode2 = 0, evt_mode3 = 0; | 663 | unsigned char evt_mode1 = 0, evt_mode2 = 0, evt_mode3 = 0; |
664 | unsigned char pull_mask = 0; | 664 | unsigned char pull_mask = 0; |
@@ -864,7 +864,7 @@ static int adp5589_probe(struct i2c_client *client, | |||
864 | { | 864 | { |
865 | struct adp5589_kpad *kpad; | 865 | struct adp5589_kpad *kpad; |
866 | const struct adp5589_kpad_platform_data *pdata = | 866 | const struct adp5589_kpad_platform_data *pdata = |
867 | client->dev.platform_data; | 867 | dev_get_platdata(&client->dev); |
868 | struct input_dev *input; | 868 | struct input_dev *input; |
869 | unsigned int revid; | 869 | unsigned int revid; |
870 | int ret, i; | 870 | int ret, i; |
diff --git a/drivers/input/keyboard/bf54x-keys.c b/drivers/input/keyboard/bf54x-keys.c index fc88fb48d70d..16fa3400d86a 100644 --- a/drivers/input/keyboard/bf54x-keys.c +++ b/drivers/input/keyboard/bf54x-keys.c | |||
@@ -180,7 +180,7 @@ static irqreturn_t bfin_kpad_isr(int irq, void *dev_id) | |||
180 | static int bfin_kpad_probe(struct platform_device *pdev) | 180 | static int bfin_kpad_probe(struct platform_device *pdev) |
181 | { | 181 | { |
182 | struct bf54x_kpad *bf54x_kpad; | 182 | struct bf54x_kpad *bf54x_kpad; |
183 | struct bfin_kpad_platform_data *pdata = pdev->dev.platform_data; | 183 | struct bfin_kpad_platform_data *pdata = dev_get_platdata(&pdev->dev); |
184 | struct input_dev *input; | 184 | struct input_dev *input; |
185 | int i, error; | 185 | int i, error; |
186 | 186 | ||
@@ -332,7 +332,7 @@ out: | |||
332 | 332 | ||
333 | static int bfin_kpad_remove(struct platform_device *pdev) | 333 | static int bfin_kpad_remove(struct platform_device *pdev) |
334 | { | 334 | { |
335 | struct bfin_kpad_platform_data *pdata = pdev->dev.platform_data; | 335 | struct bfin_kpad_platform_data *pdata = dev_get_platdata(&pdev->dev); |
336 | struct bf54x_kpad *bf54x_kpad = platform_get_drvdata(pdev); | 336 | struct bf54x_kpad *bf54x_kpad = platform_get_drvdata(pdev); |
337 | 337 | ||
338 | del_timer_sync(&bf54x_kpad->timer); | 338 | del_timer_sync(&bf54x_kpad->timer); |
diff --git a/drivers/input/keyboard/davinci_keyscan.c b/drivers/input/keyboard/davinci_keyscan.c index d15977a8361e..1559dc1cf951 100644 --- a/drivers/input/keyboard/davinci_keyscan.c +++ b/drivers/input/keyboard/davinci_keyscan.c | |||
@@ -172,7 +172,7 @@ static int __init davinci_ks_probe(struct platform_device *pdev) | |||
172 | struct input_dev *key_dev; | 172 | struct input_dev *key_dev; |
173 | struct resource *res, *mem; | 173 | struct resource *res, *mem; |
174 | struct device *dev = &pdev->dev; | 174 | struct device *dev = &pdev->dev; |
175 | struct davinci_ks_platform_data *pdata = pdev->dev.platform_data; | 175 | struct davinci_ks_platform_data *pdata = dev_get_platdata(&pdev->dev); |
176 | int error, i; | 176 | int error, i; |
177 | 177 | ||
178 | if (pdata->device_enable) { | 178 | if (pdata->device_enable) { |
diff --git a/drivers/input/keyboard/ep93xx_keypad.c b/drivers/input/keyboard/ep93xx_keypad.c index 47206bdba411..e59876212b8c 100644 --- a/drivers/input/keyboard/ep93xx_keypad.c +++ b/drivers/input/keyboard/ep93xx_keypad.c | |||
@@ -244,7 +244,7 @@ static int ep93xx_keypad_probe(struct platform_device *pdev) | |||
244 | if (!keypad) | 244 | if (!keypad) |
245 | return -ENOMEM; | 245 | return -ENOMEM; |
246 | 246 | ||
247 | keypad->pdata = pdev->dev.platform_data; | 247 | keypad->pdata = dev_get_platdata(&pdev->dev); |
248 | if (!keypad->pdata) { | 248 | if (!keypad->pdata) { |
249 | err = -EINVAL; | 249 | err = -EINVAL; |
250 | goto failed_free; | 250 | goto failed_free; |
diff --git a/drivers/input/keyboard/imx_keypad.c b/drivers/input/keyboard/imx_keypad.c index 328cfc1eed95..34bb35895268 100644 --- a/drivers/input/keyboard/imx_keypad.c +++ b/drivers/input/keyboard/imx_keypad.c | |||
@@ -425,7 +425,8 @@ MODULE_DEVICE_TABLE(of, imx_keypad_of_match); | |||
425 | 425 | ||
426 | static int imx_keypad_probe(struct platform_device *pdev) | 426 | static int imx_keypad_probe(struct platform_device *pdev) |
427 | { | 427 | { |
428 | const struct matrix_keymap_data *keymap_data = pdev->dev.platform_data; | 428 | const struct matrix_keymap_data *keymap_data = |
429 | dev_get_platdata(&pdev->dev); | ||
429 | struct imx_keypad *keypad; | 430 | struct imx_keypad *keypad; |
430 | struct input_dev *input_dev; | 431 | struct input_dev *input_dev; |
431 | struct resource *res; | 432 | struct resource *res; |
diff --git a/drivers/input/keyboard/lm8323.c b/drivers/input/keyboard/lm8323.c index 0de23f41b2d3..0b42118cbf8f 100644 --- a/drivers/input/keyboard/lm8323.c +++ b/drivers/input/keyboard/lm8323.c | |||
@@ -627,7 +627,7 @@ static DEVICE_ATTR(disable_kp, 0644, lm8323_show_disable, lm8323_set_disable); | |||
627 | static int lm8323_probe(struct i2c_client *client, | 627 | static int lm8323_probe(struct i2c_client *client, |
628 | const struct i2c_device_id *id) | 628 | const struct i2c_device_id *id) |
629 | { | 629 | { |
630 | struct lm8323_platform_data *pdata = client->dev.platform_data; | 630 | struct lm8323_platform_data *pdata = dev_get_platdata(&client->dev); |
631 | struct input_dev *idev; | 631 | struct input_dev *idev; |
632 | struct lm8323_chip *lm; | 632 | struct lm8323_chip *lm; |
633 | int pwm; | 633 | int pwm; |
diff --git a/drivers/input/keyboard/lm8333.c b/drivers/input/keyboard/lm8333.c index 5a8ca35dc9af..9081cbef11ea 100644 --- a/drivers/input/keyboard/lm8333.c +++ b/drivers/input/keyboard/lm8333.c | |||
@@ -131,7 +131,8 @@ static irqreturn_t lm8333_irq_thread(int irq, void *data) | |||
131 | static int lm8333_probe(struct i2c_client *client, | 131 | static int lm8333_probe(struct i2c_client *client, |
132 | const struct i2c_device_id *id) | 132 | const struct i2c_device_id *id) |
133 | { | 133 | { |
134 | const struct lm8333_platform_data *pdata = client->dev.platform_data; | 134 | const struct lm8333_platform_data *pdata = |
135 | dev_get_platdata(&client->dev); | ||
135 | struct lm8333 *lm8333; | 136 | struct lm8333 *lm8333; |
136 | struct input_dev *input; | 137 | struct input_dev *input; |
137 | int err, active_time; | 138 | int err, active_time; |
diff --git a/drivers/input/keyboard/max7359_keypad.c b/drivers/input/keyboard/max7359_keypad.c index bc2cdaf563fd..430b54539720 100644 --- a/drivers/input/keyboard/max7359_keypad.c +++ b/drivers/input/keyboard/max7359_keypad.c | |||
@@ -182,7 +182,8 @@ static void max7359_initialize(struct i2c_client *client) | |||
182 | static int max7359_probe(struct i2c_client *client, | 182 | static int max7359_probe(struct i2c_client *client, |
183 | const struct i2c_device_id *id) | 183 | const struct i2c_device_id *id) |
184 | { | 184 | { |
185 | const struct matrix_keymap_data *keymap_data = client->dev.platform_data; | 185 | const struct matrix_keymap_data *keymap_data = |
186 | dev_get_platdata(&client->dev); | ||
186 | struct max7359_keypad *keypad; | 187 | struct max7359_keypad *keypad; |
187 | struct input_dev *input_dev; | 188 | struct input_dev *input_dev; |
188 | int ret; | 189 | int ret; |
diff --git a/drivers/input/keyboard/mcs_touchkey.c b/drivers/input/keyboard/mcs_touchkey.c index 7c236f9c6a51..5ec77523e040 100644 --- a/drivers/input/keyboard/mcs_touchkey.c +++ b/drivers/input/keyboard/mcs_touchkey.c | |||
@@ -108,7 +108,7 @@ static int mcs_touchkey_probe(struct i2c_client *client, | |||
108 | int error; | 108 | int error; |
109 | int i; | 109 | int i; |
110 | 110 | ||
111 | pdata = client->dev.platform_data; | 111 | pdata = dev_get_platdata(&client->dev); |
112 | if (!pdata) { | 112 | if (!pdata) { |
113 | dev_err(&client->dev, "no platform data defined\n"); | 113 | dev_err(&client->dev, "no platform data defined\n"); |
114 | return -EINVAL; | 114 | return -EINVAL; |
diff --git a/drivers/input/keyboard/mpr121_touchkey.c b/drivers/input/keyboard/mpr121_touchkey.c index f7f3e9a9fd3f..98b8467aa6c9 100644 --- a/drivers/input/keyboard/mpr121_touchkey.c +++ b/drivers/input/keyboard/mpr121_touchkey.c | |||
@@ -188,7 +188,8 @@ err_i2c_write: | |||
188 | static int mpr_touchkey_probe(struct i2c_client *client, | 188 | static int mpr_touchkey_probe(struct i2c_client *client, |
189 | const struct i2c_device_id *id) | 189 | const struct i2c_device_id *id) |
190 | { | 190 | { |
191 | const struct mpr121_platform_data *pdata = client->dev.platform_data; | 191 | const struct mpr121_platform_data *pdata = |
192 | dev_get_platdata(&client->dev); | ||
192 | struct mpr121_touchkey *mpr121; | 193 | struct mpr121_touchkey *mpr121; |
193 | struct input_dev *input_dev; | 194 | struct input_dev *input_dev; |
194 | int error; | 195 | int error; |
diff --git a/drivers/input/keyboard/nomadik-ske-keypad.c b/drivers/input/keyboard/nomadik-ske-keypad.c index c7d505cce72f..63332e2f8628 100644 --- a/drivers/input/keyboard/nomadik-ske-keypad.c +++ b/drivers/input/keyboard/nomadik-ske-keypad.c | |||
@@ -222,7 +222,8 @@ static irqreturn_t ske_keypad_irq(int irq, void *dev_id) | |||
222 | 222 | ||
223 | static int __init ske_keypad_probe(struct platform_device *pdev) | 223 | static int __init ske_keypad_probe(struct platform_device *pdev) |
224 | { | 224 | { |
225 | const struct ske_keypad_platform_data *plat = pdev->dev.platform_data; | 225 | const struct ske_keypad_platform_data *plat = |
226 | dev_get_platdata(&pdev->dev); | ||
226 | struct ske_keypad *keypad; | 227 | struct ske_keypad *keypad; |
227 | struct input_dev *input; | 228 | struct input_dev *input; |
228 | struct resource *res; | 229 | struct resource *res; |
diff --git a/drivers/input/keyboard/omap-keypad.c b/drivers/input/keyboard/omap-keypad.c index d0d5226d9cd4..e80bb9743356 100644 --- a/drivers/input/keyboard/omap-keypad.c +++ b/drivers/input/keyboard/omap-keypad.c | |||
@@ -248,7 +248,7 @@ static int omap_kp_probe(struct platform_device *pdev) | |||
248 | { | 248 | { |
249 | struct omap_kp *omap_kp; | 249 | struct omap_kp *omap_kp; |
250 | struct input_dev *input_dev; | 250 | struct input_dev *input_dev; |
251 | struct omap_kp_platform_data *pdata = pdev->dev.platform_data; | 251 | struct omap_kp_platform_data *pdata = dev_get_platdata(&pdev->dev); |
252 | int i, col_idx, row_idx, ret; | 252 | int i, col_idx, row_idx, ret; |
253 | unsigned int row_shift, keycodemax; | 253 | unsigned int row_shift, keycodemax; |
254 | 254 | ||
diff --git a/drivers/input/keyboard/pxa930_rotary.c b/drivers/input/keyboard/pxa930_rotary.c index 248cdcf95296..367b03ab92a2 100644 --- a/drivers/input/keyboard/pxa930_rotary.c +++ b/drivers/input/keyboard/pxa930_rotary.c | |||
@@ -84,7 +84,8 @@ static void pxa930_rotary_close(struct input_dev *dev) | |||
84 | 84 | ||
85 | static int pxa930_rotary_probe(struct platform_device *pdev) | 85 | static int pxa930_rotary_probe(struct platform_device *pdev) |
86 | { | 86 | { |
87 | struct pxa930_rotary_platform_data *pdata = pdev->dev.platform_data; | 87 | struct pxa930_rotary_platform_data *pdata = |
88 | dev_get_platdata(&pdev->dev); | ||
88 | struct pxa930_rotary *r; | 89 | struct pxa930_rotary *r; |
89 | struct input_dev *input_dev; | 90 | struct input_dev *input_dev; |
90 | struct resource *res; | 91 | struct resource *res; |
diff --git a/drivers/input/keyboard/samsung-keypad.c b/drivers/input/keyboard/samsung-keypad.c index ac43a486c775..9ac8a1e0c08e 100644 --- a/drivers/input/keyboard/samsung-keypad.c +++ b/drivers/input/keyboard/samsung-keypad.c | |||
@@ -321,7 +321,7 @@ static int samsung_keypad_probe(struct platform_device *pdev) | |||
321 | if (pdev->dev.of_node) | 321 | if (pdev->dev.of_node) |
322 | pdata = samsung_keypad_parse_dt(&pdev->dev); | 322 | pdata = samsung_keypad_parse_dt(&pdev->dev); |
323 | else | 323 | else |
324 | pdata = pdev->dev.platform_data; | 324 | pdata = dev_get_platdata(&pdev->dev); |
325 | if (!pdata) { | 325 | if (!pdata) { |
326 | dev_err(&pdev->dev, "no platform data defined\n"); | 326 | dev_err(&pdev->dev, "no platform data defined\n"); |
327 | return -EINVAL; | 327 | return -EINVAL; |
diff --git a/drivers/input/keyboard/sh_keysc.c b/drivers/input/keyboard/sh_keysc.c index fe0e498d2479..d65a98b1d7dd 100644 --- a/drivers/input/keyboard/sh_keysc.c +++ b/drivers/input/keyboard/sh_keysc.c | |||
@@ -171,7 +171,7 @@ static int sh_keysc_probe(struct platform_device *pdev) | |||
171 | int i; | 171 | int i; |
172 | int irq, error; | 172 | int irq, error; |
173 | 173 | ||
174 | if (!pdev->dev.platform_data) { | 174 | if (!dev_get_platdata(&pdev->dev)) { |
175 | dev_err(&pdev->dev, "no platform data defined\n"); | 175 | dev_err(&pdev->dev, "no platform data defined\n"); |
176 | error = -EINVAL; | 176 | error = -EINVAL; |
177 | goto err0; | 177 | goto err0; |
@@ -198,7 +198,7 @@ static int sh_keysc_probe(struct platform_device *pdev) | |||
198 | } | 198 | } |
199 | 199 | ||
200 | platform_set_drvdata(pdev, priv); | 200 | platform_set_drvdata(pdev, priv); |
201 | memcpy(&priv->pdata, pdev->dev.platform_data, sizeof(priv->pdata)); | 201 | memcpy(&priv->pdata, dev_get_platdata(&pdev->dev), sizeof(priv->pdata)); |
202 | pdata = &priv->pdata; | 202 | pdata = &priv->pdata; |
203 | 203 | ||
204 | priv->iomem_base = ioremap_nocache(res->start, resource_size(res)); | 204 | priv->iomem_base = ioremap_nocache(res->start, resource_size(res)); |
diff --git a/drivers/input/keyboard/tca6416-keypad.c b/drivers/input/keyboard/tca6416-keypad.c index bfc832c35a7c..dc983ab6c0ad 100644 --- a/drivers/input/keyboard/tca6416-keypad.c +++ b/drivers/input/keyboard/tca6416-keypad.c | |||
@@ -213,7 +213,7 @@ static int tca6416_keypad_probe(struct i2c_client *client, | |||
213 | return -ENODEV; | 213 | return -ENODEV; |
214 | } | 214 | } |
215 | 215 | ||
216 | pdata = client->dev.platform_data; | 216 | pdata = dev_get_platdata(&client->dev); |
217 | if (!pdata) { | 217 | if (!pdata) { |
218 | dev_dbg(&client->dev, "no platform data\n"); | 218 | dev_dbg(&client->dev, "no platform data\n"); |
219 | return -EINVAL; | 219 | return -EINVAL; |
diff --git a/drivers/input/keyboard/tnetv107x-keypad.c b/drivers/input/keyboard/tnetv107x-keypad.c index 8bd24d52bf1b..086511c2121b 100644 --- a/drivers/input/keyboard/tnetv107x-keypad.c +++ b/drivers/input/keyboard/tnetv107x-keypad.c | |||
@@ -162,7 +162,7 @@ static int keypad_probe(struct platform_device *pdev) | |||
162 | int error = 0, sz, row_shift; | 162 | int error = 0, sz, row_shift; |
163 | u32 rev = 0; | 163 | u32 rev = 0; |
164 | 164 | ||
165 | pdata = pdev->dev.platform_data; | 165 | pdata = dev_get_platdata(&pdev->dev); |
166 | if (!pdata) { | 166 | if (!pdata) { |
167 | dev_err(dev, "cannot find device data\n"); | 167 | dev_err(dev, "cannot find device data\n"); |
168 | return -EINVAL; | 168 | return -EINVAL; |
diff --git a/drivers/input/keyboard/twl4030_keypad.c b/drivers/input/keyboard/twl4030_keypad.c index d2d178c84ea7..8bc2879b4c87 100644 --- a/drivers/input/keyboard/twl4030_keypad.c +++ b/drivers/input/keyboard/twl4030_keypad.c | |||
@@ -330,7 +330,7 @@ static int twl4030_kp_program(struct twl4030_keypad *kp) | |||
330 | */ | 330 | */ |
331 | static int twl4030_kp_probe(struct platform_device *pdev) | 331 | static int twl4030_kp_probe(struct platform_device *pdev) |
332 | { | 332 | { |
333 | struct twl4030_keypad_data *pdata = pdev->dev.platform_data; | 333 | struct twl4030_keypad_data *pdata = dev_get_platdata(&pdev->dev); |
334 | const struct matrix_keymap_data *keymap_data; | 334 | const struct matrix_keymap_data *keymap_data; |
335 | struct twl4030_keypad *kp; | 335 | struct twl4030_keypad *kp; |
336 | struct input_dev *input; | 336 | struct input_dev *input; |
diff --git a/drivers/input/keyboard/w90p910_keypad.c b/drivers/input/keyboard/w90p910_keypad.c index 7b039162a3f8..e03614f20d3b 100644 --- a/drivers/input/keyboard/w90p910_keypad.c +++ b/drivers/input/keyboard/w90p910_keypad.c | |||
@@ -121,7 +121,7 @@ static void w90p910_keypad_close(struct input_dev *dev) | |||
121 | static int w90p910_keypad_probe(struct platform_device *pdev) | 121 | static int w90p910_keypad_probe(struct platform_device *pdev) |
122 | { | 122 | { |
123 | const struct w90p910_keypad_platform_data *pdata = | 123 | const struct w90p910_keypad_platform_data *pdata = |
124 | pdev->dev.platform_data; | 124 | dev_get_platdata(&pdev->dev); |
125 | const struct matrix_keymap_data *keymap_data; | 125 | const struct matrix_keymap_data *keymap_data; |
126 | struct w90p910_keypad *keypad; | 126 | struct w90p910_keypad *keypad; |
127 | struct input_dev *input_dev; | 127 | struct input_dev *input_dev; |