mirror of
https://github.com/rd-stuffs/msm-4.14.git
synced 2025-02-20 11:45:48 +08:00
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>
This commit is contained in:
parent
b7cfaaaf86
commit
5bc66d530b
@ -1021,18 +1021,13 @@ static int usblp_select_alts(struct usblp *usblp)
|
|||||||
for (e = 0; e < ifd->desc.bNumEndpoints; e++) {
|
for (e = 0; e < ifd->desc.bNumEndpoints; e++) {
|
||||||
epd = &ifd->endpoint[e].desc;
|
epd = &ifd->endpoint[e].desc;
|
||||||
|
|
||||||
if ((epd->bmAttributes&USB_ENDPOINT_XFERTYPE_MASK)!=
|
if (usb_endpoint_is_bulk_out(epd))
|
||||||
USB_ENDPOINT_XFER_BULK)
|
|
||||||
continue;
|
|
||||||
|
|
||||||
if (!(epd->bEndpointAddress & USB_ENDPOINT_DIR_MASK)) {
|
|
||||||
if (!epwrite)
|
if (!epwrite)
|
||||||
epwrite = epd;
|
epwrite = epd;
|
||||||
|
|
||||||
} else {
|
if (usb_endpoint_is_bulk_in(epd))
|
||||||
if (!epread)
|
if (!epread)
|
||||||
epread = epd;
|
epread = epd;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Ignore buggy hardware without the right endpoints. */
|
/* Ignore buggy hardware without the right endpoints. */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user