HID: remove warn() macro from usb hid drivers
USB should not be having it's own printk macros, so remove warn() and use the system-wide standard of dev_warn() wherever possible. In the few places that will not work out, use a basic printk(). Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
This commit is contained in:

کامیت شده توسط
Jiri Kosina

والد
ddbe324919
کامیت
7d89fe12bd
@@ -161,7 +161,8 @@ static void usb_kbd_led(struct urb *urb)
|
||||
struct usb_kbd *kbd = urb->context;
|
||||
|
||||
if (urb->status)
|
||||
warn("led urb status %d received", urb->status);
|
||||
dev_warn(&urb->dev->dev, "led urb status %d received\n",
|
||||
urb->status);
|
||||
|
||||
if (*(kbd->leds) == kbd->newleds)
|
||||
return;
|
||||
|
مرجع در شماره جدید
Block a user