Skip to content

Commit

Permalink
USB: yealink.c: remove dbg() usage
Browse files Browse the repository at this point in the history
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: Henk Vergonet <Henk.Vergonet@gmail.com>
CC: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Greg Kroah-Hartman committed May 2, 2012
1 parent 8b0725c commit 938476f
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions drivers/input/misc/yealink.c
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,8 @@ static void urb_irq_callback(struct urb *urb)
break;

case CMD_SCANCODE:
dbg("get scancode %x", yld->irq_data->data[0]);
dev_dbg(&yld->idev->dev, "get scancode %x\n",
yld->irq_data->data[0]);

report_key(yld, map_p1k_to_key(yld->irq_data->data[0]));
break;
Expand Down Expand Up @@ -517,7 +518,7 @@ static int input_open(struct input_dev *dev)
struct yealink_dev *yld = input_get_drvdata(dev);
int i, ret;

dbg("%s", __func__);
dev_dbg(&yld->idev->dev, "%s\n", __func__);

/* force updates to device */
for (i = 0; i<sizeof(yld->master); i++)
Expand All @@ -532,8 +533,9 @@ static int input_open(struct input_dev *dev)
yld->ctl_data->size = 10;
yld->ctl_data->sum = 0x100-CMD_INIT-10;
if ((ret = usb_submit_urb(yld->urb_ctl, GFP_KERNEL)) != 0) {
dbg("%s - usb_submit_urb failed with result %d",
__func__, ret);
dev_dbg(&yld->idev->dev,
"%s - usb_submit_urb failed with result %d\n",
__func__, ret);
return ret;
}
return 0;
Expand Down

0 comments on commit 938476f

Please sign in to comment.