]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
HID: usbhid, use usb_endpoint_xfer_int
authorJiri Slaby <jirislaby@gmail.com>
Mon, 24 Nov 2008 15:20:08 +0000 (16:20 +0100)
committerJiri 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

index 6383145b58401d8f8940ccdf36d2e5a927a0f207..832e469265ee19c77d8fe8792dadd03374ca9f56 100644 (file)
@@ -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;