HID: usbhid, use usb_endpoint_xfer_int
Jiri Slaby [Mon, 24 Nov 2008 15:20:08 +0000 (16:20 +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 6383145..832e469 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;