diff options
author | Badhri Jagan Sridharan <Badhri@google.com> | 2014-12-15 16:42:27 -0800 |
---|---|---|
committer | Amit Pundir <amit.pundir@linaro.org> | 2015-07-18 20:02:18 +0530 |
commit | c3254581522bb355c74bf6d9b0631824fcf5bb53 (patch) | |
tree | de5dc9dd89ed9fdd14bfcb89625539a5f9cd2ca0 | |
parent | e7907d806fe7253f5f6600d5149a4ebf8e005e85 (diff) | |
download | linux-c3254581522bb355c74bf6d9b0631824fcf5bb53.tar.gz |
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 <Badhri@google.com>
Change-Id: I6f457006f6c5516cc6986ec2acdf5b1ecf259d0c
[AmitP: Cherry-picked it from android-3.18 to flo mainline kernel]
Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
-rw-r--r-- | include/linux/usb/composite.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/usb/composite.h b/include/linux/usb/composite.h index 2511469a9904..6a0a715b8ada 100644 --- a/include/linux/usb/composite.h +++ b/include/linux/usb/composite.h @@ -572,6 +572,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); |