Re: [PATCH 2/3] usb/gadget: make sure each gadget is using same index for Product, Serial,…

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 08/28/2012 11:47 PM, Michal Nazarewicz wrote:
--- a/include/linux/usb/composite.h
+++ b/include/linux/usb/composite.h
@@ -248,6 +248,12 @@ int usb_add_config(struct usb_composite_dev *,
  void usb_remove_config(struct usb_composite_dev *,
  		struct usb_configuration *);

+/* predefined index for usb_composite_driver */
+#define USB_GADGET_MANUFACTURER_IDX	0
+#define USB_GADGET_PRODUCT_IDX		1
+#define USB_GADGET_SERIAL_IDX		2
+#define USB_GADGET_FIRST_AVAIL_IDX	3

enum perhaps?

Let me try.

Sebastian
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux