usb: gadget: uvc: configfs: Don't wrap groups unnecessarily
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Thu, 24 May 2018 14:49:34 +0000 (17:49 +0300)
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Tue, 18 Sep 2018 08:48:25 +0000 (11:48 +0300)
commitb0aa30f33b6a4e0b755321e631eb5f870678eae6
treea51040a2305d9a1ac78032025352a28e10635db5
parent5b394b2ddf0347bef56e50c69a58773c94343ff3
usb: gadget: uvc: configfs: Don't wrap groups unnecessarily

Various configfs groups (represented by config_group) are wrapped in
structures that they're the only member of. This allows adding other
data fields to groups, but it unnecessarily makes the code more complex.
Remove the outer structures and use config_group directly to simplify
the code. Groups can still be wrapped individually in the future if
other data fields need to be added.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
drivers/usb/gadget/function/uvc_configfs.c