Skip to content

Commit

Permalink
USB: usblp: 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 Sep 27, 2006
1 parent b7cfaaa commit 5bc66d5
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions drivers/usb/class/usblp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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. */
Expand Down

0 comments on commit 5bc66d5

Please sign in to comment.