From: Badhri Jagan Sridharan Date: Tue, 16 Dec 2014 00:42:27 +0000 (-0800) Subject: usb: gadget: configfs: Add usb_function ptr to fi struct X-Git-Tag: firefly_0821_release~2958^2~369 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=6ccbd233aecf8aaa054d41df74d7e6b3fe21c73b;p=firefly-linux-kernel-4.4.55.git usb: gadget: configfs: Add usb_function ptr to fi struct Add a pointer to the usb_function inside the usb_function_instance structure to service functions specific setup requests even before the function gets added to the usb_gadget Signed-off-by: Badhri Jagan Sridharan Change-Id: I6f457006f6c5516cc6986ec2acdf5b1ecf259d0c --- diff --git a/include/linux/usb/composite.h b/include/linux/usb/composite.h index 1074b8921a5d..15d7c311e86e 100644 --- a/include/linux/usb/composite.h +++ b/include/linux/usb/composite.h @@ -574,6 +574,7 @@ struct usb_function_instance { struct config_group group; struct list_head cfs_list; struct usb_function_driver *fd; + struct usb_function *f; int (*set_inst_name)(struct usb_function_instance *inst, const char *name); void (*free_func_inst)(struct usb_function_instance *inst);