Skip to content

Commit 9af9852

Browse files
Felipe Balbirkhuangtao
authored andcommitted
UPSTREAM: usb: gadget: move gadget API functions to udc-core
instead of defining all functions as static inlines, let's move them to udc-core and export them with EXPORT_SYMBOL_GPL, that way we can make sure that only GPL drivers will use them. As a side effect, it'll be nicer to add tracepoints to the gadget API. While at that, also fix Kconfig dependencies to avoid randconfig build failures. Change-Id: I3fcc99c0730608076cfa8624908e58b7ee6f1bef Acked-By: Sebastian Reichel <sre@kernel.org> Acked-by: Peter Chen <peter.chen@nxp.com> Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com> Signed-off-by: William Wu <william.wu@rock-chips.com> (cherry-picked from commit 5a8d651a2bde01e00caf78496390d6ae46df80af)
1 parent 00011b0 commit 9af9852

6 files changed

Lines changed: 640 additions & 519 deletions

File tree

drivers/phy/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@ config TWL4030_USB
159159
tristate "TWL4030 USB Transceiver Driver"
160160
depends on TWL4030_CORE && REGULATOR_TWL4030 && USB_MUSB_OMAP2PLUS
161161
depends on USB_SUPPORT
162+
depends on USB_GADGET || !USB_GADGET # if USB_GADGET=m, this can't 'y'
162163
select GENERIC_PHY
163164
select USB_PHY
164165
help

drivers/power/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,7 @@ config BATTERY_RX51
309309
config CHARGER_ISP1704
310310
tristate "ISP1704 USB Charger Detection"
311311
depends on USB_PHY
312+
depends on USB_GADGET || !USB_GADGET # if USB_GADGET=m, this can't be 'y'
312313
help
313314
Say Y to enable support for USB Charger Detection with
314315
ISP1707/ISP1704 USB transceivers.

0 commit comments

Comments
 (0)