From lcapitulino@conectiva.com.br Sat Aug 5 16:28:38 2006 From: Luiz Fernando N. Capitulino To: greg@kroah.com Cc: linux-usb-devel@lists.sourceforge.net, Luiz Fernando N. Capitulino Subject: USB: usblp: Use usb_endpoint_* functions. Date: Sáb, 05 Ago 2006 20:28:12 -0300 Message-Id: <11548205013608-git-send-email-lcapitulino@mandriva.com.br> Signed-off-by: Luiz Fernando N. Capitulino Signed-off-by: Greg Kroah-Hartman --- drivers/usb/class/usblp.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) --- gregkh-2.6.orig/drivers/usb/class/usblp.c +++ gregkh-2.6/drivers/usb/class/usblp.c @@ -1021,18 +1021,13 @@ static int usblp_select_alts(struct usbl 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. */