Skip to content

Commit 279cc49

Browse files
Michal Nazarewiczgregkh
authored andcommitted
USB: gadget: g_multi: code clean up and refactoring
The Multifunction Composite Gadget have been cleaned up and refactored so hopefully it looks prettier and works at least as good as before changes. A Kconfig has also been fixed to make it impossible to build FunctionFS gadget with no configurations. With this patch, if RNDIS is not chosen by the user CDC is force-selected. Signed-off-by: Michal Nazarewicz <m.nazarewicz@samsung.com> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
1 parent 2487205 commit 279cc49

2 files changed

Lines changed: 147 additions & 116 deletions

File tree

‎drivers/usb/gadget/Kconfig‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -863,6 +863,7 @@ config USB_G_NOKIA
863863
config USB_G_MULTI
864864
tristate "Multifunction Composite Gadget (EXPERIMENTAL)"
865865
depends on BLOCK && NET
866+
select USB_G_MULTI_CDC if !USB_G_MULTI_RNDIS
866867
help
867868
The Multifunction Composite Gadget provides Ethernet (RNDIS
868869
and/or CDC Ethernet), mass storage and ACM serial link

0 commit comments

Comments
 (0)