summaryrefslogtreecommitdiffstats
path: root/drivers/phy
diff options
context:
space:
mode:
authorFelipe Balbi <felipe.balbi@linux.intel.com>2016-05-31 12:07:47 +0200
committerFelipe Balbi <felipe.balbi@linux.intel.com>2016-06-21 09:38:34 +0200
commit5a8d651a2bde01e00caf78496390d6ae46df80af (patch)
tree13237dee50d4ce6f31d7114975a40809cfb136ee /drivers/phy
parentusb: dwc3: gadget: decrement trbs_left for each sg entry (diff)
downloadlinux-5a8d651a2bde01e00caf78496390d6ae46df80af.tar.xz
linux-5a8d651a2bde01e00caf78496390d6ae46df80af.zip
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. 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>
Diffstat (limited to 'drivers/phy')
-rw-r--r--drivers/phy/Kconfig1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/phy/Kconfig b/drivers/phy/Kconfig
index b869b98835f4..8d1cfb7f3ea2 100644
--- a/drivers/phy/Kconfig
+++ b/drivers/phy/Kconfig
@@ -176,6 +176,7 @@ config TWL4030_USB
tristate "TWL4030 USB Transceiver Driver"
depends on TWL4030_CORE && REGULATOR_TWL4030 && USB_MUSB_OMAP2PLUS
depends on USB_SUPPORT
+ depends on USB_GADGET || !USB_GADGET # if USB_GADGET=m, this can't 'y'
select GENERIC_PHY
select USB_PHY
help