Skip to content

Commit

Permalink
HID: usbhid, use usb_endpoint_xfer_int
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jiri Slaby authored and Jiri Kosina committed Jan 4, 2009
1 parent 0ed94b3 commit 581a273
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/hid/usbhid/hid-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 581a273

Please sign in to comment.