Input: gtco - use USB endpoint API
authorJulia Lawall <julia@diku.dk>
Tue, 30 Dec 2008 09:09:02 +0000 (01:09 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 30 Dec 2008 09:09:55 +0000 (01:09 -0800)
Use usb_endpoint_xfer_int(epd) instead of open-conding the check.

Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/input/tablet/gtco.c

index 5524e01..2e18a1c 100644 (file)
@@ -877,7 +877,7 @@ static int gtco_probe(struct usb_interface *usbinterface,
        dbg("num endpoints:     %d", usbinterface->cur_altsetting->desc.bNumEndpoints);
        dbg("interface class:   %d", usbinterface->cur_altsetting->desc.bInterfaceClass);
        dbg("endpoint: attribute:0x%x type:0x%x", endpoint->bmAttributes, endpoint->bDescriptorType);
-       if ((endpoint->bmAttributes & USB_ENDPOINT_XFERTYPE_MASK) == USB_ENDPOINT_XFER_INT)
+       if (usb_endpoint_xfer_int(endpoint))
                dbg("endpoint: we have interrupt endpoint\n");
 
        dbg("endpoint extra len:%d ", usbinterface->altsetting[0].extralen);