diff options
| author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-05-02 00:33:04 -0400 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-05-02 00:33:04 -0400 |
| commit | 67946d136879a129fccd35b79a87e1f05ace148e (patch) | |
| tree | ff9e72ae674f7905ee28f165138a15ad446a2312 /drivers/input/mouse | |
| parent | 938476f9237ee97480ddb091c06d67851bb4d7e9 (diff) | |
USB: appletouch.c: remove dbg() usage
dbg() was a very old USB-specific macro that should no longer
be used. This patch removes it from being used in the driver
and uses dev_dbg() instead.
CC: Alessandro Rubini <rubini@ipvvis.unipv.it>
CC: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/input/mouse')
| -rw-r--r-- | drivers/input/mouse/appletouch.c | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/drivers/input/mouse/appletouch.c b/drivers/input/mouse/appletouch.c index a5f15477a7ea..d0a590f87c2b 100644 --- a/drivers/input/mouse/appletouch.c +++ b/drivers/input/mouse/appletouch.c | |||
| @@ -401,6 +401,7 @@ static inline void atp_report_fingers(struct input_dev *input, int fingers) | |||
| 401 | static int atp_status_check(struct urb *urb) | 401 | static int atp_status_check(struct urb *urb) |
| 402 | { | 402 | { |
| 403 | struct atp *dev = urb->context; | 403 | struct atp *dev = urb->context; |
| 404 | struct input_dev *idev = dev->input; | ||
| 404 | 405 | ||
| 405 | switch (urb->status) { | 406 | switch (urb->status) { |
| 406 | case 0: | 407 | case 0: |
| @@ -408,8 +409,8 @@ static int atp_status_check(struct urb *urb) | |||
| 408 | break; | 409 | break; |
| 409 | case -EOVERFLOW: | 410 | case -EOVERFLOW: |
| 410 | if (!dev->overflow_warned) { | 411 | if (!dev->overflow_warned) { |
| 411 | printk(KERN_WARNING "appletouch: OVERFLOW with data " | 412 | dev_warn(&idev->dev, |
| 412 | "length %d, actual length is %d\n", | 413 | "appletouch: OVERFLOW with data length %d, actual length is %d\n", |
| 413 | dev->info->datalen, dev->urb->actual_length); | 414 | dev->info->datalen, dev->urb->actual_length); |
| 414 | dev->overflow_warned = true; | 415 | dev->overflow_warned = true; |
| 415 | } | 416 | } |
| @@ -417,13 +418,15 @@ static int atp_status_check(struct urb *urb) | |||
| 417 | case -ENOENT: | 418 | case -ENOENT: |
| 418 | case -ESHUTDOWN: | 419 | case -ESHUTDOWN: |
| 419 | /* This urb is terminated, clean up */ | 420 | /* This urb is terminated, clean up */ |
| 420 | dbg("atp_complete: urb shutting down with status: %d", | 421 | dev_dbg(&idev->dev, |
| 421 | urb->status); | 422 | "atp_complete: urb shutting down with status: %d\n", |
| 423 | urb->status); | ||
| 422 | return ATP_URB_STATUS_ERROR_FATAL; | 424 | return ATP_URB_STATUS_ERROR_FATAL; |
| 423 | 425 | ||
| 424 | default: | 426 | default: |
| 425 | dbg("atp_complete: nonzero urb status received: %d", | 427 | dev_dbg(&idev->dev, |
| 426 | urb->status); | 428 | "atp_complete: nonzero urb status received: %d\n", |
| 429 | urb->status); | ||
| 427 | return ATP_URB_STATUS_ERROR; | 430 | return ATP_URB_STATUS_ERROR; |
| 428 | } | 431 | } |
| 429 | 432 | ||
| @@ -446,7 +449,8 @@ static void atp_detect_size(struct atp *dev) | |||
| 446 | for (i = dev->info->xsensors; i < ATP_XSENSORS; i++) { | 449 | for (i = dev->info->xsensors; i < ATP_XSENSORS; i++) { |
| 447 | if (dev->xy_cur[i]) { | 450 | if (dev->xy_cur[i]) { |
| 448 | 451 | ||
| 449 | printk(KERN_INFO "appletouch: 17\" model detected.\n"); | 452 | dev_info(&dev->input->dev, |
| 453 | "appletouch: 17\" model detected.\n"); | ||
| 450 | 454 | ||
| 451 | input_set_abs_params(dev->input, ABS_X, 0, | 455 | input_set_abs_params(dev->input, ABS_X, 0, |
| 452 | (dev->info->xsensors_17 - 1) * | 456 | (dev->info->xsensors_17 - 1) * |
