usb: gadget: configfs: OS Extended Properties descriptors support
[cascardo/linux.git] / include / linux / usb / composite.h
index 9c3903d..7373203 100644 (file)
@@ -64,6 +64,7 @@ struct usb_configuration;
  * @name: Extended Property name
  * @data_len: Length of Extended Property blob (for unicode store double len)
  * @data: Extended Property blob
+ * @item: Represents this Extended Property in configfs
  */
 struct usb_os_desc_ext_prop {
        struct list_head        entry;
@@ -72,6 +73,7 @@ struct usb_os_desc_ext_prop {
        char                    *name;
        int                     data_len;
        char                    *data;
+       struct config_item      item;
 };
 
 /**
@@ -82,6 +84,7 @@ struct usb_os_desc_ext_prop {
  * @ext_prop_count: Number of Extended Properties
  * @opts_mutex: Optional mutex protecting config data of a usb_function_instance
  * @group: Represents OS descriptors associated with an interface in configfs
+ * @owner: Module associated with this OS descriptor
  */
 struct usb_os_desc {
        char                    *ext_compat_id;
@@ -90,6 +93,7 @@ struct usb_os_desc {
        int                     ext_prop_count;
        struct mutex            *opts_mutex;
        struct config_group     group;
+       struct module           *owner;
 };
 
 /**