Skip to content

Commit

Permalink
USB: usbtest: 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 fc6e254 commit 4d823dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/usb/misc/usbtest.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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 {
Expand Down

0 comments on commit 4d823dd

Please sign in to comment.