summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Lockwood <lockwood@google.com>2012-03-26 11:03:55 -0700
committerVarun Wadekar <vwadekar@nvidia.com>2012-09-18 14:33:03 +0530
commit06bc9ff4e739667515ecaeffbf523a77048f17ca (patch)
tree1ca56f3c416b91cde04da037c9d2fa55bfc335e0
parent52af7c1ce566406bedf1450a90f233cf05386df6 (diff)
USB: gadget: f_accessory: Add support for HID input devices
Change-Id: I4f1452db32508382df52acdc47c0eb395ae328c7 Signed-off-by: Mike Lockwood <lockwood@google.com>
-rw-r--r--drivers/usb/gadget/f_accessory.c2
-rw-r--r--include/linux/usb/f_accessory.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/gadget/f_accessory.c b/drivers/usb/gadget/f_accessory.c
index a244265c1143..921db5a193d6 100644
--- a/drivers/usb/gadget/f_accessory.c
+++ b/drivers/usb/gadget/f_accessory.c
@@ -482,7 +482,7 @@ static int acc_unregister_hid(struct acc_dev *dev, int id)
return 0;
}
-static int create_bulk_endpoints(struct acc_dev *dev,
+static int __init create_bulk_endpoints(struct acc_dev *dev,
struct usb_endpoint_descriptor *in_desc,
struct usb_endpoint_descriptor *out_desc)
{
diff --git a/include/linux/usb/f_accessory.h b/include/linux/usb/f_accessory.h
index 7637e2ec8f29..61ebe0aabc5b 100644
--- a/include/linux/usb/f_accessory.h
+++ b/include/linux/usb/f_accessory.h
@@ -44,7 +44,7 @@
* index: 0
* data version number (16 bits little endian)
* 1 for original accessory support
- * 2 adds device to host audio support
+ * 2 adds HID and device to host audio support
*/
#define ACCESSORY_GET_PROTOCOL 51