diff options
author | Jiri Slaby <jirislaby@gmail.com> | 2008-11-24 16:20:08 +0100 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2009-01-04 01:00:51 +0100 |
commit | 581a2739607b5fdfb6b22d6083fc7f83c441077f (patch) | |
tree | 6fd51c30c37de46b97513a86eec6b3e24ddb95cf /drivers/hid/usbhid | |
parent | 0ed94b334265b6ee3e3336b4fedacfa9cb2ccaba (diff) | |
download | kernel-crypto-581a2739607b5fdfb6b22d6083fc7f83c441077f.tar.gz kernel-crypto-581a2739607b5fdfb6b22d6083fc7f83c441077f.tar.xz kernel-crypto-581a2739607b5fdfb6b22d6083fc7f83c441077f.zip |
HID: usbhid, use usb_endpoint_xfer_int
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>
Diffstat (limited to 'drivers/hid/usbhid')
-rw-r--r-- | drivers/hid/usbhid/hid-core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hid/usbhid/hid-core.c b/drivers/hid/usbhid/hid-core.c index 6383145b584..832e469265e 100644 --- a/drivers/hid/usbhid/hid-core.c +++ b/drivers/hid/usbhid/hid-core.c @@ -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; |