mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-11-01 17:08:10 +00:00
USB: yurex.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: Tomoki Sekiyama <tomoki.sekiyama@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
7a2d281060
commit
aadd6472d9
1 changed files with 9 additions and 5 deletions
|
@ -95,7 +95,7 @@ static void yurex_delete(struct kref *kref)
|
||||||
{
|
{
|
||||||
struct usb_yurex *dev = to_yurex_dev(kref);
|
struct usb_yurex *dev = to_yurex_dev(kref);
|
||||||
|
|
||||||
dbg("yurex_delete");
|
dev_dbg(&dev->interface->dev, "%s\n", __func__);
|
||||||
|
|
||||||
usb_put_dev(dev->udev);
|
usb_put_dev(dev->udev);
|
||||||
if (dev->cntl_urb) {
|
if (dev->cntl_urb) {
|
||||||
|
@ -165,16 +165,19 @@ static void yurex_interrupt(struct urb *urb)
|
||||||
if (i != 5)
|
if (i != 5)
|
||||||
dev->bbu <<= 8;
|
dev->bbu <<= 8;
|
||||||
}
|
}
|
||||||
dbg("%s count: %lld", __func__, dev->bbu);
|
dev_dbg(&dev->interface->dev, "%s count: %lld\n",
|
||||||
|
__func__, dev->bbu);
|
||||||
spin_unlock_irqrestore(&dev->lock, flags);
|
spin_unlock_irqrestore(&dev->lock, flags);
|
||||||
|
|
||||||
kill_fasync(&dev->async_queue, SIGIO, POLL_IN);
|
kill_fasync(&dev->async_queue, SIGIO, POLL_IN);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
dbg("data format error - no EOF");
|
dev_dbg(&dev->interface->dev,
|
||||||
|
"data format error - no EOF\n");
|
||||||
break;
|
break;
|
||||||
case CMD_ACK:
|
case CMD_ACK:
|
||||||
dbg("%s ack: %c", __func__, buf[1]);
|
dev_dbg(&dev->interface->dev, "%s ack: %c\n",
|
||||||
|
__func__, buf[1]);
|
||||||
wake_up_interruptible(&dev->waitq);
|
wake_up_interruptible(&dev->waitq);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -509,7 +512,8 @@ static ssize_t yurex_write(struct file *file, const char *user_buffer, size_t co
|
||||||
|
|
||||||
/* send the data as the control msg */
|
/* send the data as the control msg */
|
||||||
prepare_to_wait(&dev->waitq, &wait, TASK_INTERRUPTIBLE);
|
prepare_to_wait(&dev->waitq, &wait, TASK_INTERRUPTIBLE);
|
||||||
dbg("%s - submit %c", __func__, dev->cntl_buffer[0]);
|
dev_dbg(&dev->interface->dev, "%s - submit %c\n", __func__,
|
||||||
|
dev->cntl_buffer[0]);
|
||||||
retval = usb_submit_urb(dev->cntl_urb, GFP_KERNEL);
|
retval = usb_submit_urb(dev->cntl_urb, GFP_KERNEL);
|
||||||
if (retval >= 0)
|
if (retval >= 0)
|
||||||
timeout = schedule_timeout(YUREX_WRITE_TIMEOUT);
|
timeout = schedule_timeout(YUREX_WRITE_TIMEOUT);
|
||||||
|
|
Loading…
Reference in a new issue