diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-12-05 22:21:10 -0500 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2013-12-06 05:06:29 -0500 |
commit | c838cb3d477f79738ee03ede53a3f724021f3ae0 (patch) | |
tree | 5418f571570d6b2bb47a34bc41d31949caa603a1 /drivers/input/touchscreen | |
parent | 54f05e95132bdb47fa408308d64fd293d3ffb908 (diff) |
Input: use dev_get_platdata()
Use the wrapper function for retrieving the platform data instead
of accessing dev->platform_data directly. This is a cosmetic change
to make the code simpler and enhance the readability.
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Acked-by: Fugang Duan <B38611@freescale.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/input/touchscreen')
-rw-r--r-- | drivers/input/touchscreen/88pm860x-ts.c | 2 | ||||
-rw-r--r-- | drivers/input/touchscreen/ad7877.c | 2 | ||||
-rw-r--r-- | drivers/input/touchscreen/ad7879.c | 4 | ||||
-rw-r--r-- | drivers/input/touchscreen/atmel_mxt_ts.c | 2 | ||||
-rw-r--r-- | drivers/input/touchscreen/atmel_tsadcc.c | 2 | ||||
-rw-r--r-- | drivers/input/touchscreen/cy8ctmg110_ts.c | 2 | ||||
-rw-r--r-- | drivers/input/touchscreen/cyttsp_core.c | 4 | ||||
-rw-r--r-- | drivers/input/touchscreen/da9034-ts.c | 2 | ||||
-rw-r--r-- | drivers/input/touchscreen/edt-ft5x06.c | 2 | ||||
-rw-r--r-- | drivers/input/touchscreen/eeti_ts.c | 2 | ||||
-rw-r--r-- | drivers/input/touchscreen/ili210x.c | 2 | ||||
-rw-r--r-- | drivers/input/touchscreen/mcs5000_ts.c | 4 | ||||
-rw-r--r-- | drivers/input/touchscreen/pixcir_i2c_ts.c | 3 | ||||
-rw-r--r-- | drivers/input/touchscreen/s3c2410_ts.c | 4 | ||||
-rw-r--r-- | drivers/input/touchscreen/st1232.c | 2 | ||||
-rw-r--r-- | drivers/input/touchscreen/tsc2005.c | 2 | ||||
-rw-r--r-- | drivers/input/touchscreen/ucb1400_ts.c | 8 | ||||
-rw-r--r-- | drivers/input/touchscreen/wm97xx-core.c | 2 |
18 files changed, 26 insertions, 25 deletions
diff --git a/drivers/input/touchscreen/88pm860x-ts.c b/drivers/input/touchscreen/88pm860x-ts.c index f7de14a268bf..544e20c551f8 100644 --- a/drivers/input/touchscreen/88pm860x-ts.c +++ b/drivers/input/touchscreen/88pm860x-ts.c | |||
@@ -172,7 +172,7 @@ static int pm860x_touch_dt_init(struct platform_device *pdev, | |||
172 | static int pm860x_touch_probe(struct platform_device *pdev) | 172 | static int pm860x_touch_probe(struct platform_device *pdev) |
173 | { | 173 | { |
174 | struct pm860x_chip *chip = dev_get_drvdata(pdev->dev.parent); | 174 | struct pm860x_chip *chip = dev_get_drvdata(pdev->dev.parent); |
175 | struct pm860x_touch_pdata *pdata = pdev->dev.platform_data; | 175 | struct pm860x_touch_pdata *pdata = dev_get_platdata(&pdev->dev); |
176 | struct pm860x_touch *touch; | 176 | struct pm860x_touch *touch; |
177 | struct i2c_client *i2c = (chip->id == CHIP_PM8607) ? chip->client \ | 177 | struct i2c_client *i2c = (chip->id == CHIP_PM8607) ? chip->client \ |
178 | : chip->companion; | 178 | : chip->companion; |
diff --git a/drivers/input/touchscreen/ad7877.c b/drivers/input/touchscreen/ad7877.c index 69834dd3c313..b9f9bcb22683 100644 --- a/drivers/input/touchscreen/ad7877.c +++ b/drivers/input/touchscreen/ad7877.c | |||
@@ -686,7 +686,7 @@ static int ad7877_probe(struct spi_device *spi) | |||
686 | { | 686 | { |
687 | struct ad7877 *ts; | 687 | struct ad7877 *ts; |
688 | struct input_dev *input_dev; | 688 | struct input_dev *input_dev; |
689 | struct ad7877_platform_data *pdata = spi->dev.platform_data; | 689 | struct ad7877_platform_data *pdata = dev_get_platdata(&spi->dev); |
690 | int err; | 690 | int err; |
691 | u16 verify; | 691 | u16 verify; |
692 | 692 | ||
diff --git a/drivers/input/touchscreen/ad7879.c b/drivers/input/touchscreen/ad7879.c index facd3057b62d..a0364d8ae6c6 100644 --- a/drivers/input/touchscreen/ad7879.c +++ b/drivers/input/touchscreen/ad7879.c | |||
@@ -470,7 +470,7 @@ static int ad7879_gpio_add(struct ad7879 *ts, | |||
470 | 470 | ||
471 | static void ad7879_gpio_remove(struct ad7879 *ts) | 471 | static void ad7879_gpio_remove(struct ad7879 *ts) |
472 | { | 472 | { |
473 | const struct ad7879_platform_data *pdata = ts->dev->platform_data; | 473 | const struct ad7879_platform_data *pdata = dev_get_platdata(ts->dev); |
474 | int ret; | 474 | int ret; |
475 | 475 | ||
476 | if (pdata->gpio_export) { | 476 | if (pdata->gpio_export) { |
@@ -495,7 +495,7 @@ static inline void ad7879_gpio_remove(struct ad7879 *ts) | |||
495 | struct ad7879 *ad7879_probe(struct device *dev, u8 devid, unsigned int irq, | 495 | struct ad7879 *ad7879_probe(struct device *dev, u8 devid, unsigned int irq, |
496 | const struct ad7879_bus_ops *bops) | 496 | const struct ad7879_bus_ops *bops) |
497 | { | 497 | { |
498 | struct ad7879_platform_data *pdata = dev->platform_data; | 498 | struct ad7879_platform_data *pdata = dev_get_platdata(dev); |
499 | struct ad7879 *ts; | 499 | struct ad7879 *ts; |
500 | struct input_dev *input_dev; | 500 | struct input_dev *input_dev; |
501 | int err; | 501 | int err; |
diff --git a/drivers/input/touchscreen/atmel_mxt_ts.c b/drivers/input/touchscreen/atmel_mxt_ts.c index 59aa24002c7b..37ea05741d20 100644 --- a/drivers/input/touchscreen/atmel_mxt_ts.c +++ b/drivers/input/touchscreen/atmel_mxt_ts.c | |||
@@ -1130,7 +1130,7 @@ static void mxt_input_close(struct input_dev *dev) | |||
1130 | static int mxt_probe(struct i2c_client *client, | 1130 | static int mxt_probe(struct i2c_client *client, |
1131 | const struct i2c_device_id *id) | 1131 | const struct i2c_device_id *id) |
1132 | { | 1132 | { |
1133 | const struct mxt_platform_data *pdata = client->dev.platform_data; | 1133 | const struct mxt_platform_data *pdata = dev_get_platdata(&client->dev); |
1134 | struct mxt_data *data; | 1134 | struct mxt_data *data; |
1135 | struct input_dev *input_dev; | 1135 | struct input_dev *input_dev; |
1136 | int error; | 1136 | int error; |
diff --git a/drivers/input/touchscreen/atmel_tsadcc.c b/drivers/input/touchscreen/atmel_tsadcc.c index bddabc595077..f7d1ea5849ba 100644 --- a/drivers/input/touchscreen/atmel_tsadcc.c +++ b/drivers/input/touchscreen/atmel_tsadcc.c | |||
@@ -182,7 +182,7 @@ static int atmel_tsadcc_probe(struct platform_device *pdev) | |||
182 | struct atmel_tsadcc *ts_dev; | 182 | struct atmel_tsadcc *ts_dev; |
183 | struct input_dev *input_dev; | 183 | struct input_dev *input_dev; |
184 | struct resource *res; | 184 | struct resource *res; |
185 | struct at91_tsadcc_data *pdata = pdev->dev.platform_data; | 185 | struct at91_tsadcc_data *pdata = dev_get_platdata(&pdev->dev); |
186 | int err; | 186 | int err; |
187 | unsigned int prsc; | 187 | unsigned int prsc; |
188 | unsigned int reg; | 188 | unsigned int reg; |
diff --git a/drivers/input/touchscreen/cy8ctmg110_ts.c b/drivers/input/touchscreen/cy8ctmg110_ts.c index 8c651985a5c4..5bf1aeeea825 100644 --- a/drivers/input/touchscreen/cy8ctmg110_ts.c +++ b/drivers/input/touchscreen/cy8ctmg110_ts.c | |||
@@ -178,7 +178,7 @@ static irqreturn_t cy8ctmg110_irq_thread(int irq, void *dev_id) | |||
178 | static int cy8ctmg110_probe(struct i2c_client *client, | 178 | static int cy8ctmg110_probe(struct i2c_client *client, |
179 | const struct i2c_device_id *id) | 179 | const struct i2c_device_id *id) |
180 | { | 180 | { |
181 | const struct cy8ctmg110_pdata *pdata = client->dev.platform_data; | 181 | const struct cy8ctmg110_pdata *pdata = dev_get_platdata(&client->dev); |
182 | struct cy8ctmg110 *ts; | 182 | struct cy8ctmg110 *ts; |
183 | struct input_dev *input_dev; | 183 | struct input_dev *input_dev; |
184 | int err; | 184 | int err; |
diff --git a/drivers/input/touchscreen/cyttsp_core.c b/drivers/input/touchscreen/cyttsp_core.c index d53e0b72a407..56088eceacdc 100644 --- a/drivers/input/touchscreen/cyttsp_core.c +++ b/drivers/input/touchscreen/cyttsp_core.c | |||
@@ -534,7 +534,7 @@ static void cyttsp_close(struct input_dev *dev) | |||
534 | struct cyttsp *cyttsp_probe(const struct cyttsp_bus_ops *bus_ops, | 534 | struct cyttsp *cyttsp_probe(const struct cyttsp_bus_ops *bus_ops, |
535 | struct device *dev, int irq, size_t xfer_buf_size) | 535 | struct device *dev, int irq, size_t xfer_buf_size) |
536 | { | 536 | { |
537 | const struct cyttsp_platform_data *pdata = dev->platform_data; | 537 | const struct cyttsp_platform_data *pdata = dev_get_platdata(dev); |
538 | struct cyttsp *ts; | 538 | struct cyttsp *ts; |
539 | struct input_dev *input_dev; | 539 | struct input_dev *input_dev; |
540 | int error; | 540 | int error; |
@@ -553,7 +553,7 @@ struct cyttsp *cyttsp_probe(const struct cyttsp_bus_ops *bus_ops, | |||
553 | 553 | ||
554 | ts->dev = dev; | 554 | ts->dev = dev; |
555 | ts->input = input_dev; | 555 | ts->input = input_dev; |
556 | ts->pdata = dev->platform_data; | 556 | ts->pdata = dev_get_platdata(dev); |
557 | ts->bus_ops = bus_ops; | 557 | ts->bus_ops = bus_ops; |
558 | ts->irq = irq; | 558 | ts->irq = irq; |
559 | 559 | ||
diff --git a/drivers/input/touchscreen/da9034-ts.c b/drivers/input/touchscreen/da9034-ts.c index 34ad84105e6e..ea0f7645220f 100644 --- a/drivers/input/touchscreen/da9034-ts.c +++ b/drivers/input/touchscreen/da9034-ts.c | |||
@@ -299,7 +299,7 @@ static void da9034_touch_close(struct input_dev *dev) | |||
299 | 299 | ||
300 | static int da9034_touch_probe(struct platform_device *pdev) | 300 | static int da9034_touch_probe(struct platform_device *pdev) |
301 | { | 301 | { |
302 | struct da9034_touch_pdata *pdata = pdev->dev.platform_data; | 302 | struct da9034_touch_pdata *pdata = dev_get_platdata(&pdev->dev); |
303 | struct da9034_touch *touch; | 303 | struct da9034_touch *touch; |
304 | struct input_dev *input_dev; | 304 | struct input_dev *input_dev; |
305 | int ret; | 305 | int ret; |
diff --git a/drivers/input/touchscreen/edt-ft5x06.c b/drivers/input/touchscreen/edt-ft5x06.c index 83fa1b15a97f..af0d68b703b7 100644 --- a/drivers/input/touchscreen/edt-ft5x06.c +++ b/drivers/input/touchscreen/edt-ft5x06.c | |||
@@ -705,7 +705,7 @@ static int edt_ft5x06_ts_probe(struct i2c_client *client, | |||
705 | const struct i2c_device_id *id) | 705 | const struct i2c_device_id *id) |
706 | { | 706 | { |
707 | const struct edt_ft5x06_platform_data *pdata = | 707 | const struct edt_ft5x06_platform_data *pdata = |
708 | client->dev.platform_data; | 708 | dev_get_platdata(&client->dev); |
709 | struct edt_ft5x06_ts_data *tsdata; | 709 | struct edt_ft5x06_ts_data *tsdata; |
710 | struct input_dev *input; | 710 | struct input_dev *input; |
711 | int error; | 711 | int error; |
diff --git a/drivers/input/touchscreen/eeti_ts.c b/drivers/input/touchscreen/eeti_ts.c index 1ce3d29ffca5..b1884ddd7a84 100644 --- a/drivers/input/touchscreen/eeti_ts.c +++ b/drivers/input/touchscreen/eeti_ts.c | |||
@@ -157,7 +157,7 @@ static void eeti_ts_close(struct input_dev *dev) | |||
157 | static int eeti_ts_probe(struct i2c_client *client, | 157 | static int eeti_ts_probe(struct i2c_client *client, |
158 | const struct i2c_device_id *idp) | 158 | const struct i2c_device_id *idp) |
159 | { | 159 | { |
160 | struct eeti_ts_platform_data *pdata = client->dev.platform_data; | 160 | struct eeti_ts_platform_data *pdata = dev_get_platdata(&client->dev); |
161 | struct eeti_ts_priv *priv; | 161 | struct eeti_ts_priv *priv; |
162 | struct input_dev *input; | 162 | struct input_dev *input; |
163 | unsigned int irq_flags; | 163 | unsigned int irq_flags; |
diff --git a/drivers/input/touchscreen/ili210x.c b/drivers/input/touchscreen/ili210x.c index 1418bdda61bb..2a5089139818 100644 --- a/drivers/input/touchscreen/ili210x.c +++ b/drivers/input/touchscreen/ili210x.c | |||
@@ -184,7 +184,7 @@ static int ili210x_i2c_probe(struct i2c_client *client, | |||
184 | const struct i2c_device_id *id) | 184 | const struct i2c_device_id *id) |
185 | { | 185 | { |
186 | struct device *dev = &client->dev; | 186 | struct device *dev = &client->dev; |
187 | const struct ili210x_platform_data *pdata = dev->platform_data; | 187 | const struct ili210x_platform_data *pdata = dev_get_platdata(dev); |
188 | struct ili210x *priv; | 188 | struct ili210x *priv; |
189 | struct input_dev *input; | 189 | struct input_dev *input; |
190 | struct panel_info panel; | 190 | struct panel_info panel; |
diff --git a/drivers/input/touchscreen/mcs5000_ts.c b/drivers/input/touchscreen/mcs5000_ts.c index f9f4e0c56eda..58486f135a4c 100644 --- a/drivers/input/touchscreen/mcs5000_ts.c +++ b/drivers/input/touchscreen/mcs5000_ts.c | |||
@@ -194,7 +194,7 @@ static int mcs5000_ts_probe(struct i2c_client *client, | |||
194 | struct input_dev *input_dev; | 194 | struct input_dev *input_dev; |
195 | int ret; | 195 | int ret; |
196 | 196 | ||
197 | if (!client->dev.platform_data) | 197 | if (!dev_get_platdata(&client->dev)) |
198 | return -EINVAL; | 198 | return -EINVAL; |
199 | 199 | ||
200 | data = kzalloc(sizeof(struct mcs5000_ts_data), GFP_KERNEL); | 200 | data = kzalloc(sizeof(struct mcs5000_ts_data), GFP_KERNEL); |
@@ -207,7 +207,7 @@ static int mcs5000_ts_probe(struct i2c_client *client, | |||
207 | 207 | ||
208 | data->client = client; | 208 | data->client = client; |
209 | data->input_dev = input_dev; | 209 | data->input_dev = input_dev; |
210 | data->platform_data = client->dev.platform_data; | 210 | data->platform_data = dev_get_platdata(&client->dev); |
211 | 211 | ||
212 | input_dev->name = "MELPAS MCS-5000 Touchscreen"; | 212 | input_dev->name = "MELPAS MCS-5000 Touchscreen"; |
213 | input_dev->id.bustype = BUS_I2C; | 213 | input_dev->id.bustype = BUS_I2C; |
diff --git a/drivers/input/touchscreen/pixcir_i2c_ts.c b/drivers/input/touchscreen/pixcir_i2c_ts.c index 6cc6b36663ff..02392d2061d6 100644 --- a/drivers/input/touchscreen/pixcir_i2c_ts.c +++ b/drivers/input/touchscreen/pixcir_i2c_ts.c | |||
@@ -128,7 +128,8 @@ static SIMPLE_DEV_PM_OPS(pixcir_dev_pm_ops, | |||
128 | static int pixcir_i2c_ts_probe(struct i2c_client *client, | 128 | static int pixcir_i2c_ts_probe(struct i2c_client *client, |
129 | const struct i2c_device_id *id) | 129 | const struct i2c_device_id *id) |
130 | { | 130 | { |
131 | const struct pixcir_ts_platform_data *pdata = client->dev.platform_data; | 131 | const struct pixcir_ts_platform_data *pdata = |
132 | dev_get_platdata(&client->dev); | ||
132 | struct pixcir_i2c_ts_data *tsdata; | 133 | struct pixcir_i2c_ts_data *tsdata; |
133 | struct input_dev *input; | 134 | struct input_dev *input; |
134 | int error; | 135 | int error; |
diff --git a/drivers/input/touchscreen/s3c2410_ts.c b/drivers/input/touchscreen/s3c2410_ts.c index b061af2c8376..d32bd9e6d215 100644 --- a/drivers/input/touchscreen/s3c2410_ts.c +++ b/drivers/input/touchscreen/s3c2410_ts.c | |||
@@ -251,7 +251,7 @@ static int s3c2410ts_probe(struct platform_device *pdev) | |||
251 | 251 | ||
252 | ts.dev = dev; | 252 | ts.dev = dev; |
253 | 253 | ||
254 | info = pdev->dev.platform_data; | 254 | info = dev_get_platdata(&pdev->dev); |
255 | if (!info) { | 255 | if (!info) { |
256 | dev_err(dev, "no platform data, cannot attach\n"); | 256 | dev_err(dev, "no platform data, cannot attach\n"); |
257 | return -EINVAL; | 257 | return -EINVAL; |
@@ -392,7 +392,7 @@ static int s3c2410ts_suspend(struct device *dev) | |||
392 | static int s3c2410ts_resume(struct device *dev) | 392 | static int s3c2410ts_resume(struct device *dev) |
393 | { | 393 | { |
394 | struct platform_device *pdev = to_platform_device(dev); | 394 | struct platform_device *pdev = to_platform_device(dev); |
395 | struct s3c2410_ts_mach_info *info = pdev->dev.platform_data; | 395 | struct s3c2410_ts_mach_info *info = dev_get_platdata(&pdev->dev); |
396 | 396 | ||
397 | clk_enable(ts.clock); | 397 | clk_enable(ts.clock); |
398 | enable_irq(ts.irq_tc); | 398 | enable_irq(ts.irq_tc); |
diff --git a/drivers/input/touchscreen/st1232.c b/drivers/input/touchscreen/st1232.c index 2f03b2f289dd..5c342b3139e8 100644 --- a/drivers/input/touchscreen/st1232.c +++ b/drivers/input/touchscreen/st1232.c | |||
@@ -154,7 +154,7 @@ static int st1232_ts_probe(struct i2c_client *client, | |||
154 | const struct i2c_device_id *id) | 154 | const struct i2c_device_id *id) |
155 | { | 155 | { |
156 | struct st1232_ts_data *ts; | 156 | struct st1232_ts_data *ts; |
157 | struct st1232_pdata *pdata = client->dev.platform_data; | 157 | struct st1232_pdata *pdata = dev_get_platdata(&client->dev); |
158 | struct input_dev *input_dev; | 158 | struct input_dev *input_dev; |
159 | int error; | 159 | int error; |
160 | 160 | ||
diff --git a/drivers/input/touchscreen/tsc2005.c b/drivers/input/touchscreen/tsc2005.c index 811353353917..550adcbbfc23 100644 --- a/drivers/input/touchscreen/tsc2005.c +++ b/drivers/input/touchscreen/tsc2005.c | |||
@@ -571,7 +571,7 @@ static void tsc2005_setup_spi_xfer(struct tsc2005 *ts) | |||
571 | 571 | ||
572 | static int tsc2005_probe(struct spi_device *spi) | 572 | static int tsc2005_probe(struct spi_device *spi) |
573 | { | 573 | { |
574 | const struct tsc2005_platform_data *pdata = spi->dev.platform_data; | 574 | const struct tsc2005_platform_data *pdata = dev_get_platdata(&spi->dev); |
575 | struct tsc2005 *ts; | 575 | struct tsc2005 *ts; |
576 | struct input_dev *input_dev; | 576 | struct input_dev *input_dev; |
577 | unsigned int max_x, max_y, max_p; | 577 | unsigned int max_x, max_y, max_p; |
diff --git a/drivers/input/touchscreen/ucb1400_ts.c b/drivers/input/touchscreen/ucb1400_ts.c index 1271f97b4079..5b3ca807d179 100644 --- a/drivers/input/touchscreen/ucb1400_ts.c +++ b/drivers/input/touchscreen/ucb1400_ts.c | |||
@@ -320,7 +320,7 @@ static int ucb1400_ts_detect_irq(struct ucb1400_ts *ucb, | |||
320 | 320 | ||
321 | static int ucb1400_ts_probe(struct platform_device *pdev) | 321 | static int ucb1400_ts_probe(struct platform_device *pdev) |
322 | { | 322 | { |
323 | struct ucb1400_ts *ucb = pdev->dev.platform_data; | 323 | struct ucb1400_ts *ucb = dev_get_platdata(&pdev->dev); |
324 | int error, x_res, y_res; | 324 | int error, x_res, y_res; |
325 | u16 fcsr; | 325 | u16 fcsr; |
326 | 326 | ||
@@ -399,7 +399,7 @@ err: | |||
399 | 399 | ||
400 | static int ucb1400_ts_remove(struct platform_device *pdev) | 400 | static int ucb1400_ts_remove(struct platform_device *pdev) |
401 | { | 401 | { |
402 | struct ucb1400_ts *ucb = pdev->dev.platform_data; | 402 | struct ucb1400_ts *ucb = dev_get_platdata(&pdev->dev); |
403 | 403 | ||
404 | free_irq(ucb->irq, ucb); | 404 | free_irq(ucb->irq, ucb); |
405 | input_unregister_device(ucb->ts_idev); | 405 | input_unregister_device(ucb->ts_idev); |
@@ -410,7 +410,7 @@ static int ucb1400_ts_remove(struct platform_device *pdev) | |||
410 | #ifdef CONFIG_PM_SLEEP | 410 | #ifdef CONFIG_PM_SLEEP |
411 | static int ucb1400_ts_suspend(struct device *dev) | 411 | static int ucb1400_ts_suspend(struct device *dev) |
412 | { | 412 | { |
413 | struct ucb1400_ts *ucb = dev->platform_data; | 413 | struct ucb1400_ts *ucb = dev_get_platdata(dev); |
414 | struct input_dev *idev = ucb->ts_idev; | 414 | struct input_dev *idev = ucb->ts_idev; |
415 | 415 | ||
416 | mutex_lock(&idev->mutex); | 416 | mutex_lock(&idev->mutex); |
@@ -424,7 +424,7 @@ static int ucb1400_ts_suspend(struct device *dev) | |||
424 | 424 | ||
425 | static int ucb1400_ts_resume(struct device *dev) | 425 | static int ucb1400_ts_resume(struct device *dev) |
426 | { | 426 | { |
427 | struct ucb1400_ts *ucb = dev->platform_data; | 427 | struct ucb1400_ts *ucb = dev_get_platdata(dev); |
428 | struct input_dev *idev = ucb->ts_idev; | 428 | struct input_dev *idev = ucb->ts_idev; |
429 | 429 | ||
430 | mutex_lock(&idev->mutex); | 430 | mutex_lock(&idev->mutex); |
diff --git a/drivers/input/touchscreen/wm97xx-core.c b/drivers/input/touchscreen/wm97xx-core.c index 7e45c9f6e6b7..d0ef91fc87d1 100644 --- a/drivers/input/touchscreen/wm97xx-core.c +++ b/drivers/input/touchscreen/wm97xx-core.c | |||
@@ -584,7 +584,7 @@ static void wm97xx_ts_input_close(struct input_dev *idev) | |||
584 | static int wm97xx_probe(struct device *dev) | 584 | static int wm97xx_probe(struct device *dev) |
585 | { | 585 | { |
586 | struct wm97xx *wm; | 586 | struct wm97xx *wm; |
587 | struct wm97xx_pdata *pdata = dev->platform_data; | 587 | struct wm97xx_pdata *pdata = dev_get_platdata(dev); |
588 | int ret = 0, id = 0; | 588 | int ret = 0, id = 0; |
589 | 589 | ||
590 | wm = kzalloc(sizeof(struct wm97xx), GFP_KERNEL); | 590 | wm = kzalloc(sizeof(struct wm97xx), GFP_KERNEL); |