From: Luiz Fernando N. Capitulino Date: Thu, 26 Oct 2006 16:02:51 +0000 (-0300) Subject: USB: hid-core: Use usb_endpoint_* functions X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=0f12aa03972e797129c79a236d2872f2ee5d25b6;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git USB: hid-core: Use usb_endpoint_* functions Signed-off-by: Luiz Fernando N. Capitulino Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/input/hid-core.c b/drivers/usb/input/hid-core.c index 5de931cf4cfb..2c12b04da111 100644 --- a/drivers/usb/input/hid-core.c +++ b/drivers/usb/input/hid-core.c @@ -1998,7 +1998,7 @@ static struct hid_device *usb_hid_configure(struct usb_interface *intf) if (hid->collection->usage == HID_GD_MOUSE && hid_mousepoll_interval > 0) interval = hid_mousepoll_interval; - if (endpoint->bEndpointAddress & USB_DIR_IN) { + if (usb_endpoint_dir_in(endpoint)) { if (hid->urbin) continue; if (!(hid->urbin = usb_alloc_urb(0, GFP_KERNEL)))