USB: storage: 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:
committed by
Greg Kroah-Hartman
parent
4d823dd21d
commit
0472074748
@@ -740,18 +740,16 @@ static int get_pipes(struct us_data *us)
|
|||||||
ep = &altsetting->endpoint[i].desc;
|
ep = &altsetting->endpoint[i].desc;
|
||||||
|
|
||||||
/* Is it a BULK endpoint? */
|
/* Is it a BULK endpoint? */
|
||||||
if ((ep->bmAttributes & USB_ENDPOINT_XFERTYPE_MASK)
|
if (usb_endpoint_xfer_bulk(ep)) {
|
||||||
== USB_ENDPOINT_XFER_BULK) {
|
|
||||||
/* BULK in or out? */
|
/* BULK in or out? */
|
||||||
if (ep->bEndpointAddress & USB_DIR_IN)
|
if (usb_endpoint_dir_in(ep))
|
||||||
ep_in = ep;
|
ep_in = ep;
|
||||||
else
|
else
|
||||||
ep_out = ep;
|
ep_out = ep;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Is it an interrupt endpoint? */
|
/* Is it an interrupt endpoint? */
|
||||||
else if ((ep->bmAttributes & USB_ENDPOINT_XFERTYPE_MASK)
|
else if (usb_endpoint_xfer_int(ep)) {
|
||||||
== USB_ENDPOINT_XFER_INT) {
|
|
||||||
ep_int = ep;
|
ep_int = ep;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user