ANDROID: 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
Bug: 63740241
Bug: 68755607
Bug: 78114713
Bug: 120441124
[badhri: This is a supporting patch for other patches which have
replacements pipelined. It can be dropped when those
implementations land.]
Change-Id: I6f457006f6c5516cc6986ec2acdf5b1ecf259d0c
Signed-off-by: Badhri Jagan Sridharan <badhri@google.com>
Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
(cherry picked from commit 2d89290aec
https://android.googlesource.com/kernel/common)
This commit is contained in:
parent
640eb99d42
commit
79b5303e24
1 changed files with 1 additions and 0 deletions
|
|
@ -578,6 +578,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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue