diff options
author | Jiri Slaby <jirislaby@gmail.com> | 2008-11-24 10:20:08 -0500 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2009-01-03 19:00:51 -0500 |
commit | 581a2739607b5fdfb6b22d6083fc7f83c441077f (patch) | |
tree | 6fd51c30c37de46b97513a86eec6b3e24ddb95cf | |
parent | 0ed94b334265b6ee3e3336b4fedacfa9cb2ccaba (diff) |
HID: usbhid, use usb_endpoint_xfer_int
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>
-rw-r--r-- | drivers/hid/usbhid/hid-core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hid/usbhid/hid-core.c b/drivers/hid/usbhid/hid-core.c index 6383145b5840..832e469265ee 100644 --- 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) | |||
805 | int interval; | 805 | int interval; |
806 | 806 | ||
807 | endpoint = &interface->endpoint[n].desc; | 807 | endpoint = &interface->endpoint[n].desc; |
808 | if ((endpoint->bmAttributes & 3) != 3) /* Not an interrupt endpoint */ | 808 | if (!usb_endpoint_xfer_int(endpoint)) |
809 | continue; | 809 | continue; |
810 | 810 | ||
811 | interval = endpoint->bInterval; | 811 | interval = endpoint->bInterval; |