projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0ed94b3
)
HID: usbhid, use usb_endpoint_xfer_int
author
Jiri Slaby
<jirislaby@gmail.com>
Mon, 24 Nov 2008 15:20:08 +0000
(16:20 +0100)
committer
Jiri Kosina
<jkosina@suse.cz>
Sun, 4 Jan 2009 00:00:51 +0000
(
01:00
+0100)
Use usb_endpoint_xfer_int() instead of direct use of constants.
Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/usbhid/hid-core.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/hid/usbhid/hid-core.c
b/drivers/hid/usbhid/hid-core.c
index 6383145b58401d8f8940ccdf36d2e5a927a0f207..832e469265ee19c77d8fe8792dadd03374ca9f56 100644
(file)
--- a/
drivers/hid/usbhid/hid-core.c
+++ b/
drivers/hid/usbhid/hid-core.c
@@
-805,7
+805,7
@@
static int usbhid_start(struct hid_device *hid)
int interval;
endpoint = &interface->endpoint[n].desc;
- if (
(endpoint->bmAttributes & 3) != 3) /* Not an interrupt endpoint */
+ if (
!usb_endpoint_xfer_int(endpoint))
continue;
interval = endpoint->bInterval;