diff options
author | Mateusz Zalega <m.zalega@samsung.com> | 2014-04-28 21:13:28 +0200 |
---|---|---|
committer | Lukasz Majewski <l.majewski@samsung.com> | 2014-05-05 08:21:47 +0200 |
commit | c4d0e856047f2689278ffea63a562c4f22a35ee3 (patch) | |
tree | ae6a7cb91039b0ffa70ae0ebcb4618896d5d725c /drivers/usb/gadget/f_dfu.c | |
parent | fad8edf0f72b8aba8885d2d137ebb58b3428806a (diff) | |
download | u-boot-imx-c4d0e856047f2689278ffea63a562c4f22a35ee3.zip u-boot-imx-c4d0e856047f2689278ffea63a562c4f22a35ee3.tar.gz u-boot-imx-c4d0e856047f2689278ffea63a562c4f22a35ee3.tar.bz2 |
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>
Diffstat (limited to 'drivers/usb/gadget/f_dfu.c')
-rw-r--r-- | drivers/usb/gadget/f_dfu.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/usb/gadget/f_dfu.c b/drivers/usb/gadget/f_dfu.c index de75ff1..1b1e179 100644 --- a/drivers/usb/gadget/f_dfu.c +++ b/drivers/usb/gadget/f_dfu.c @@ -24,6 +24,7 @@ #include <linux/usb/composite.h> #include <dfu.h> +#include <g_dnl.h> #include "f_dfu.h" struct f_dfu { @@ -817,3 +818,5 @@ int dfu_add(struct usb_configuration *c) return dfu_bind_config(c); } + +DECLARE_GADGET_BIND_CALLBACK(usb_dnl_dfu, dfu_add); |