Commit 8fb6321b authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

USB: aiptek.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: Dmitry Torokhov <dmitry.torokhov@gmail.com>
CC: Jesper Juhl <jj@chaosbits.net>
CC: JJ Ding <dgdunix@gmail.com>
CC: Edwin van Vliet <edwin@cheatah.nl>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent eeba1ae1
...@@ -447,13 +447,15 @@ static void aiptek_irq(struct urb *urb) ...@@ -447,13 +447,15 @@ static void aiptek_irq(struct urb *urb)
case -ENOENT: case -ENOENT:
case -ESHUTDOWN: case -ESHUTDOWN:
/* This urb is terminated, clean up */ /* This urb is terminated, clean up */
dbg("%s - urb shutting down with status: %d", dev_dbg(&inputdev->dev,
__func__, urb->status); "%s - urb shutting down with status: %d\n",
__func__, urb->status);
return; return;
default: default:
dbg("%s - nonzero urb status received: %d", dev_dbg(&inputdev->dev,
__func__, urb->status); "%s - nonzero urb status received: %d\n",
__func__, urb->status);
goto exit; goto exit;
} }
...@@ -785,7 +787,7 @@ static void aiptek_irq(struct urb *urb) ...@@ -785,7 +787,7 @@ static void aiptek_irq(struct urb *urb)
1 | AIPTEK_REPORT_TOOL_UNKNOWN); 1 | AIPTEK_REPORT_TOOL_UNKNOWN);
input_sync(inputdev); input_sync(inputdev);
} else { } else {
dbg("Unknown report %d", data[0]); dev_dbg(&inputdev->dev, "Unknown report %d\n", data[0]);
} }
/* Jitter may occur when the user presses a button on the stlyus /* Jitter may occur when the user presses a button on the stlyus
...@@ -913,8 +915,9 @@ aiptek_command(struct aiptek *aiptek, unsigned char command, unsigned char data) ...@@ -913,8 +915,9 @@ aiptek_command(struct aiptek *aiptek, unsigned char command, unsigned char data)
if ((ret = if ((ret =
aiptek_set_report(aiptek, 3, 2, buf, sizeof_buf)) != sizeof_buf) { aiptek_set_report(aiptek, 3, 2, buf, sizeof_buf)) != sizeof_buf) {
dbg("aiptek_program: failed, tried to send: 0x%02x 0x%02x", dev_dbg(&aiptek->inputdev->dev,
command, data); "aiptek_program: failed, tried to send: 0x%02x 0x%02x\n",
command, data);
} }
kfree(buf); kfree(buf);
return ret < 0 ? ret : 0; return ret < 0 ? ret : 0;
...@@ -948,8 +951,9 @@ aiptek_query(struct aiptek *aiptek, unsigned char command, unsigned char data) ...@@ -948,8 +951,9 @@ aiptek_query(struct aiptek *aiptek, unsigned char command, unsigned char data)
if ((ret = if ((ret =
aiptek_get_report(aiptek, 3, 2, buf, sizeof_buf)) != sizeof_buf) { aiptek_get_report(aiptek, 3, 2, buf, sizeof_buf)) != sizeof_buf) {
dbg("aiptek_query failed: returned 0x%02x 0x%02x 0x%02x", dev_dbg(&aiptek->inputdev->dev,
buf[0], buf[1], buf[2]); "aiptek_query failed: returned 0x%02x 0x%02x 0x%02x\n",
buf[0], buf[1], buf[2]);
ret = -EIO; ret = -EIO;
} else { } else {
ret = get_unaligned_le16(buf + 1); ret = get_unaligned_le16(buf + 1);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment