diff --git a/[refs] b/[refs] index 6b1f7f3c52d1..4aff3e6af950 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 7ca46b862f0e30fe0dcc4a4aef5b32f6b6a3fda5 +refs/heads/master: a8ef36bc0a5fe973bddaa54a5a07cda29e04a602 diff --git a/trunk/include/linux/usb.h b/trunk/include/linux/usb.h index 3cb9285df2d1..1c56386de709 100644 --- a/trunk/include/linux/usb.h +++ b/trunk/include/linux/usb.h @@ -556,6 +556,18 @@ static inline int usb_endpoint_xfer_bulk(const struct usb_endpoint_descriptor *e USB_ENDPOINT_XFER_BULK); } +/** + * usb_endpoint_xfer_control - check if the endpoint has control transfer type + * @epd: endpoint to be checked + * + * Returns true if the endpoint is of type control, otherwise it returns false. + */ +static inline int usb_endpoint_xfer_control(const struct usb_endpoint_descriptor *epd) +{ + return ((epd->bmAttributes & USB_ENDPOINT_XFERTYPE_MASK) == + USB_ENDPOINT_XFER_CONTROL); +} + /** * usb_endpoint_xfer_int - check if the endpoint has interrupt transfer type * @epd: endpoint to be checked