diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2018-05-24 16:49:34 +0200 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2018-09-24 17:54:23 +0200 |
commit | efbf0af70b4f7ee6ed1533ed0d905255c0545e08 (patch) | |
tree | 25c279a6c1dfd4336e1650ff34a76eec515c58bc /Documentation/ABI | |
parent | usb: gadget: uvc: configfs: Drop leaked references to config items (diff) | |
download | linux-efbf0af70b4f7ee6ed1533ed0d905255c0545e08.tar.xz linux-efbf0af70b4f7ee6ed1533ed0d905255c0545e08.zip |
usb: gadget: uvc: configfs: Allocate groups dynamically
The UVC configfs implementation creates all groups as global static
variables. This prevents creation of multiple UVC function instances,
as they would all require their own configfs group instances.
Fix this by allocating all groups dynamically. To avoid duplicating code
around, extend the config_item_type structure with group name and
children, and implement helper functions to create children
automatically for most groups.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Diffstat (limited to 'Documentation/ABI')
0 files changed, 0 insertions, 0 deletions