usb: musb: add Kconfig options for HOST, GAGDET or DUAL_ROLE modes
authorDaniel Mack <zonque@gmail.com>
Wed, 10 Apr 2013 19:55:46 +0000 (21:55 +0200)
committerFelipe Balbi <balbi@ti.com>
Tue, 28 May 2013 16:22:23 +0000 (19:22 +0300)
commitb7b741ea38a32336b45870b76aaec1abe57badd0
tree10d48d17c988e5f6b6743bd3d6eb97f9bc0e0679
parent74c2e93600581d80695604126a3725a157d0ab72
usb: musb: add Kconfig options for HOST, GAGDET or DUAL_ROLE modes

This makes building the actual object files optional to the selected
mode, which saves users who know which kind of USB mode support they
need some binary size.

Unimplemented functions are stubbed out with static inline functions.

Signed-off-by: Daniel Mack <zonque@gmail.com>
Acked-by: Peter Korsgaard <jacmet@sunsite.dk>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/musb/Kconfig
drivers/usb/musb/Makefile
drivers/usb/musb/musb_gadget.h
drivers/usb/musb/musb_host.h