Using configfs to create/configure a usb gadget requires providing a method to create config group for a usb function and a wrapper for usb_add_function. Signed-off-by: Andrzej Pietrasiewicz <andrzej.p@xxxxxxxxxxx> Signed-off-by: Kyungmin Park <kyungmin.park@xxxxxxxxxxx> --- include/linux/usb/composite.h | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/include/linux/usb/composite.h b/include/linux/usb/composite.h index e84c754..cfd9209 100644 --- a/include/linux/usb/composite.h +++ b/include/linux/usb/composite.h @@ -39,6 +39,7 @@ #include <linux/usb/ch9.h> #include <linux/usb/gadget.h> #include <linux/log2.h> +#include <linux/configfs.h> /* * USB function drivers should return USB_GADGET_DELAYED_STATUS if they @@ -147,6 +148,11 @@ struct usb_function { * Related: unbind() may kfree() but bind() won't... */ + struct config_group *(*make_group)(struct config_group *parent, + const char *name); + int (*add_function)(struct usb_configuration *c, struct usb_function *f, + struct config_item *item, void *data); + /* configuration management: bind/unbind */ int (*bind)(struct usb_configuration *, struct usb_function *); -- 1.7.0.4 -- 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