summaryrefslogtreecommitdiffstats
path: root/drivers/usb/class
diff options
context:
space:
mode:
authorLuiz Fernando N. Capitulino <lcapitulino@mandriva.com.br>2006-09-27 11:58:53 -0700
committerGreg Kroah-Hartman <gregkh@suse.de>2006-09-27 11:58:53 -0700
commit5bc66d530b6c158795cb3fefd2106a09afb5e0f7 (patch)
tree3bec292410110e62b3d4be3f4565447cb994dea0 /drivers/usb/class
parentb7cfaaaf86571732c7728e95a2231a860385463c (diff)
downloadop-kernel-dev-5bc66d530b6c158795cb3fefd2106a09afb5e0f7.zip
op-kernel-dev-5bc66d530b6c158795cb3fefd2106a09afb5e0f7.tar.gz
USB: usblp: Use usb_endpoint_* functions.
Signed-off-by: Luiz Fernando N. Capitulino <lcapitulino@mandriva.com.br> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/class')
-rw-r--r--drivers/usb/class/usblp.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/drivers/usb/class/usblp.c b/drivers/usb/class/usblp.c
index 292919d..9b05a35 100644
--- a/drivers/usb/class/usblp.c
+++ b/drivers/usb/class/usblp.c
@@ -1021,18 +1021,13 @@ static int usblp_select_alts(struct usblp *usblp)
for (e = 0; e < ifd->desc.bNumEndpoints; e++) {
epd = &ifd->endpoint[e].desc;
- if ((epd->bmAttributes&USB_ENDPOINT_XFERTYPE_MASK)!=
- USB_ENDPOINT_XFER_BULK)
- continue;
-
- if (!(epd->bEndpointAddress & USB_ENDPOINT_DIR_MASK)) {
+ if (usb_endpoint_is_bulk_out(epd))
if (!epwrite)
epwrite = epd;
- } else {
+ if (usb_endpoint_is_bulk_in(epd))
if (!epread)
epread = epd;
- }
}
/* Ignore buggy hardware without the right endpoints. */
OpenPOWER on IntegriCloud