USB: gadget: added a saner gadget downloader registration API
authorMateusz Zalega <m.zalega@samsung.com>
Mon, 28 Apr 2014 19:13:28 +0000 (21:13 +0200)
committerLukasz Majewski <l.majewski@samsung.com>
Mon, 5 May 2014 06:21:47 +0000 (08:21 +0200)
commitc4d0e856047f2689278ffea63a562c4f22a35ee3
treeae6a7cb91039b0ffa70ae0ebcb4618896d5d725c
parentfad8edf0f72b8aba8885d2d137ebb58b3428806a
USB: gadget: added a saner gadget downloader registration API

Preprocessor definitions and hardcoded implementation selection in
g_dnl core were replaced by a linker list made of (usb_function_name,
bind_callback) pairs.

Signed-off-by: Mateusz Zalega <m.zalega@samsung.com>
Acked-by: Lukasz Majewski <l.majewski@samsung.com>
Acked-by: Marek Vasut <marex@denx.de>
common/cmd_dfu.c
common/cmd_thordown.c
common/cmd_usb_mass_storage.c
drivers/usb/gadget/f_dfu.c
drivers/usb/gadget/f_mass_storage.c
drivers/usb/gadget/f_thor.c
drivers/usb/gadget/g_dnl.c
include/dfu.h
include/g_dnl.h
include/thor.h
include/usb_mass_storage.h