USB: gadget: f_accessory: Add support for HID input devices
Mike Lockwood [Mon, 26 Mar 2012 18:03:55 +0000 (11:03 -0700)]
Change-Id: I4f1452db32508382df52acdc47c0eb395ae328c7
Signed-off-by: Mike Lockwood <lockwood@google.com>

drivers/usb/gadget/f_accessory.c
include/linux/usb/f_accessory.h

index a244265..921db5a 100644 (file)
@@ -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)
 {
index 7637e2e..61ebe0a 100644 (file)
@@ -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