summaryrefslogtreecommitdiffstats
path: root/drivers/hid/usbhid
diff options
context:
space:
mode:
authorJiri Slaby <jirislaby@gmail.com>2008-11-24 16:20:08 +0100
committerJiri Kosina <jkosina@suse.cz>2009-01-04 01:00:51 +0100
commit581a2739607b5fdfb6b22d6083fc7f83c441077f (patch)
tree6fd51c30c37de46b97513a86eec6b3e24ddb95cf /drivers/hid/usbhid
parentHID: move usbhid flags to usbhid.h (diff)
downloadlinux-581a2739607b5fdfb6b22d6083fc7f83c441077f.tar.xz
linux-581a2739607b5fdfb6b22d6083fc7f83c441077f.zip
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>
Diffstat (limited to 'drivers/hid/usbhid')
-rw-r--r--drivers/hid/usbhid/hid-core.c2
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)
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;