usbkbd.c (ddbe32491951c092abbd3647fd104e79deb19528) usbkbd.c (7d89fe12bd21f1383a6a240114221bf31fd71904)
1/*
2 * Copyright (c) 1999-2001 Vojtech Pavlik
3 *
4 * USB HIDBP Keyboard support
5 */
6
7/*
8 * This program is free software; you can redistribute it and/or modify

--- 147 unchanged lines hidden (view full) ---

156 return 0;
157}
158
159static void usb_kbd_led(struct urb *urb)
160{
161 struct usb_kbd *kbd = urb->context;
162
163 if (urb->status)
1/*
2 * Copyright (c) 1999-2001 Vojtech Pavlik
3 *
4 * USB HIDBP Keyboard support
5 */
6
7/*
8 * This program is free software; you can redistribute it and/or modify

--- 147 unchanged lines hidden (view full) ---

156 return 0;
157}
158
159static void usb_kbd_led(struct urb *urb)
160{
161 struct usb_kbd *kbd = urb->context;
162
163 if (urb->status)
164 warn("led urb status %d received", urb->status);
164 dev_warn(&urb->dev->dev, "led urb status %d received\n",
165 urb->status);
165
166 if (*(kbd->leds) == kbd->newleds)
167 return;
168
169 *(kbd->leds) = kbd->newleds;
170 kbd->led->dev = kbd->usbdev;
171 if (usb_submit_urb(kbd->led, GFP_ATOMIC))
172 err_hid("usb_submit_urb(leds) failed");

--- 196 unchanged lines hidden ---
166
167 if (*(kbd->leds) == kbd->newleds)
168 return;
169
170 *(kbd->leds) = kbd->newleds;
171 kbd->led->dev = kbd->usbdev;
172 if (usb_submit_urb(kbd->led, GFP_ATOMIC))
173 err_hid("usb_submit_urb(leds) failed");

--- 196 unchanged lines hidden ---