From a79361ff283e3021268db1b7acf3fc94592d483f Mon Sep 17 00:00:00 2001 From: Sarah Bailey Date: Sat, 23 Dec 2006 23:14:58 -0800 Subject: [PATCH] --- yaml --- r: 46655 b: refs/heads/master c: a8ef36bc0a5fe973bddaa54a5a07cda29e04a602 h: refs/heads/master i: 46653: 571b2668c2d0cd93f2121ee5c518b724b3fdae47 46651: 764620c148510f87e4657fc4dfa9e631091f226c 46647: 700544865d7b0591acbb640228ac14f30bd01e2a 46639: 06f4102b8181191a599c6ff66779e4e88ea7264f 46623: 5a6b32c9f0c8c5c61a884900b304b16a43d102eb 46591: 94c827bc88c274ae3cd75c4e84ace59f52d3fa6a v: v3 --- [refs] | 2 +- trunk/include/linux/usb.h | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) 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