usb: gadget: move gadget API functions to udc-core
authorFelipe Balbi <felipe.balbi@linux.intel.com>
Tue, 31 May 2016 10:07:47 +0000 (13:07 +0300)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Tue, 21 Jun 2016 07:38:34 +0000 (10:38 +0300)
commit5a8d651a2bde01e00caf78496390d6ae46df80af
tree13237dee50d4ce6f31d7114975a40809cfb136ee
parentd6dc2e76a860d6be0129daae43e5f12461531d20
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>
drivers/phy/Kconfig
drivers/power/Kconfig
drivers/usb/gadget/udc/udc-core.c
drivers/usb/host/Kconfig
drivers/usb/phy/Kconfig
include/linux/usb/gadget.h