Skip to content

Commit

Permalink
USB: hid-core: Use usb_endpoint_* functions
Browse files Browse the repository at this point in the history
Signed-off-by: Luiz Fernando N. Capitulino <lcapitulino@mandriva.com.br>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Luiz Fernando N. Capitulino authored and Greg Kroah-Hartman committed Dec 1, 2006
1 parent 2ae7745 commit 0f12aa0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/usb/input/hid-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)))
Expand Down

0 comments on commit 0f12aa0

Please sign in to comment.