usb: gadget: configfs: Add usb_function ptr to fi struct
authorBadhri Jagan Sridharan <Badhri@google.com>
Tue, 16 Dec 2014 00:42:27 +0000 (16:42 -0800)
committerJohn Stultz <john.stultz@linaro.org>
Tue, 16 Feb 2016 21:52:06 +0000 (13:52 -0800)
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 <Badhri@google.com>
Change-Id: I6f457006f6c5516cc6986ec2acdf5b1ecf259d0c

include/linux/usb/composite.h

index 1074b8921a5dc59dda948ef39e7281f63d420efb..15d7c311e86e60df68b27170f012675e1bef678b 100644 (file)
@@ -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);