USB: usbtest: Use usb_endpoint_* functions
Signed-off-by: Luiz Fernando N. Capitulino <lcapitulino@mandriva.com.br> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
fc6e2544bd
commit
4d823dd21d
1 changed files with 2 additions and 2 deletions
|
@ -138,7 +138,7 @@ get_endpoints (struct usbtest_dev *dev, struct usb_interface *intf)
|
|||
default:
|
||||
continue;
|
||||
}
|
||||
if (e->desc.bEndpointAddress & USB_DIR_IN) {
|
||||
if (usb_endpoint_dir_in(&e->desc)) {
|
||||
if (!in)
|
||||
in = e;
|
||||
} else {
|
||||
|
@ -147,7 +147,7 @@ get_endpoints (struct usbtest_dev *dev, struct usb_interface *intf)
|
|||
}
|
||||
continue;
|
||||
try_iso:
|
||||
if (e->desc.bEndpointAddress & USB_DIR_IN) {
|
||||
if (usb_endpoint_dir_in(&e->desc)) {
|
||||
if (!iso_in)
|
||||
iso_in = e;
|
||||
} else {
|
||||
|
|
Reference in a new issue