diff options
author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2012-01-05 01:18:51 -0500 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2012-01-05 01:20:01 -0500 |
commit | bd100e2ca16b929c7096e58a0ab28141476e48ae (patch) | |
tree | 9d14a537f59d7e1adf0a984fc59d73e755a638a2 /drivers/input | |
parent | c899afedf168b6735911997d8366b7f23e7e59bc (diff) |
Input: ucb1400-ts - switch to using dev_xxx() for diagnostic messages
Acked-by: Marek Vasut <marek.vasut@gmail.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'drivers/input')
-rw-r--r-- | drivers/input/touchscreen/ucb1400_ts.c | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/drivers/input/touchscreen/ucb1400_ts.c b/drivers/input/touchscreen/ucb1400_ts.c index 5162f4e34252..d2b57536feea 100644 --- a/drivers/input/touchscreen/ucb1400_ts.c +++ b/drivers/input/touchscreen/ucb1400_ts.c | |||
@@ -274,7 +274,8 @@ static void ucb1400_ts_close(struct input_dev *idev) | |||
274 | * Try to probe our interrupt, rather than relying on lots of | 274 | * Try to probe our interrupt, rather than relying on lots of |
275 | * hard-coded machine dependencies. | 275 | * hard-coded machine dependencies. |
276 | */ | 276 | */ |
277 | static int __devinit ucb1400_ts_detect_irq(struct ucb1400_ts *ucb) | 277 | static int __devinit ucb1400_ts_detect_irq(struct ucb1400_ts *ucb, |
278 | struct platform_device *pdev) | ||
278 | { | 279 | { |
279 | unsigned long mask, timeout; | 280 | unsigned long mask, timeout; |
280 | 281 | ||
@@ -296,7 +297,7 @@ static int __devinit ucb1400_ts_detect_irq(struct ucb1400_ts *ucb) | |||
296 | UCB_ADC_DAT_VALID)) { | 297 | UCB_ADC_DAT_VALID)) { |
297 | cpu_relax(); | 298 | cpu_relax(); |
298 | if (time_after(jiffies, timeout)) { | 299 | if (time_after(jiffies, timeout)) { |
299 | printk(KERN_ERR "ucb1400: timed out in IRQ probe\n"); | 300 | dev_err(&pdev->dev, "timed out in IRQ probe\n"); |
300 | probe_irq_off(mask); | 301 | probe_irq_off(mask); |
301 | return -ENODEV; | 302 | return -ENODEV; |
302 | } | 303 | } |
@@ -331,13 +332,13 @@ static int __devinit ucb1400_ts_probe(struct platform_device *pdev) | |||
331 | 332 | ||
332 | /* Only in case the IRQ line wasn't supplied, try detecting it */ | 333 | /* Only in case the IRQ line wasn't supplied, try detecting it */ |
333 | if (ucb->irq < 0) { | 334 | if (ucb->irq < 0) { |
334 | error = ucb1400_ts_detect_irq(ucb); | 335 | error = ucb1400_ts_detect_irq(ucb, pdev); |
335 | if (error) { | 336 | if (error) { |
336 | printk(KERN_ERR "UCB1400: IRQ probe failed\n"); | 337 | dev_err(&pdev->dev, "IRQ probe failed\n"); |
337 | goto err_free_devs; | 338 | goto err_free_devs; |
338 | } | 339 | } |
339 | } | 340 | } |
340 | printk(KERN_DEBUG "UCB1400: found IRQ %d\n", ucb->irq); | 341 | dev_dbg(&pdev->dev, "found IRQ %d\n", ucb->irq); |
341 | 342 | ||
342 | init_waitqueue_head(&ucb->ts_wait); | 343 | init_waitqueue_head(&ucb->ts_wait); |
343 | 344 | ||
@@ -365,7 +366,7 @@ static int __devinit ucb1400_ts_probe(struct platform_device *pdev) | |||
365 | x_res = ucb1400_ts_read_xres(ucb); | 366 | x_res = ucb1400_ts_read_xres(ucb); |
366 | y_res = ucb1400_ts_read_yres(ucb); | 367 | y_res = ucb1400_ts_read_yres(ucb); |
367 | ucb1400_adc_disable(ucb->ac97); | 368 | ucb1400_adc_disable(ucb->ac97); |
368 | printk(KERN_DEBUG "UCB1400: x/y = %d/%d\n", x_res, y_res); | 369 | dev_dbg(&pdev->dev, "x/y = %d/%d\n", x_res, y_res); |
369 | 370 | ||
370 | input_set_abs_params(ucb->ts_idev, ABS_X, 0, x_res, 0, 0); | 371 | input_set_abs_params(ucb->ts_idev, ABS_X, 0, x_res, 0, 0); |
371 | input_set_abs_params(ucb->ts_idev, ABS_Y, 0, y_res, 0, 0); | 372 | input_set_abs_params(ucb->ts_idev, ABS_Y, 0, y_res, 0, 0); |
@@ -377,8 +378,8 @@ static int __devinit ucb1400_ts_probe(struct platform_device *pdev) | |||
377 | IRQF_TRIGGER_RISING | IRQF_ONESHOT, | 378 | IRQF_TRIGGER_RISING | IRQF_ONESHOT, |
378 | "UCB1400", ucb); | 379 | "UCB1400", ucb); |
379 | if (error) { | 380 | if (error) { |
380 | printk(KERN_ERR "ucb1400: unable to grab irq%d: %d\n", | 381 | dev_err(&pdev->dev, |
381 | ucb->irq, error); | 382 | "unable to grab irq%d: %d\n", ucb->irq, error); |
382 | goto err_free_devs; | 383 | goto err_free_devs; |
383 | } | 384 | } |
384 | 385 | ||