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 <andrze...@samsung.com> Signed-off-by: Kyungmin Park <kyungmin.p...@samsung.com> --- 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..5bac1f8 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 @@ -146,6 +147,11 @@ struct usb_function { * we can't restructure things to avoid mismatching. * 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 *, -- 1.7.0.4 -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html