diff options
author | Lukasz Majewski <l.majewski@samsung.com> | 2013-09-17 15:58:23 +0200 |
---|---|---|
committer | Marek Vasut <marex@denx.de> | 2013-09-24 17:51:36 +0200 |
commit | a6921adcf200b3f2b6fadd78f99ea99b0f362e9c (patch) | |
tree | 8a2f8f668d53321c561016e97b46d3a925223720 /include/dfu.h | |
parent | 69d6cbe748ae13e6b728d2c28616a8c54b07f9c2 (diff) | |
download | u-boot-imx-a6921adcf200b3f2b6fadd78f99ea99b0f362e9c.zip u-boot-imx-a6921adcf200b3f2b6fadd78f99ea99b0f362e9c.tar.gz u-boot-imx-a6921adcf200b3f2b6fadd78f99ea99b0f362e9c.tar.bz2 |
usb:g_dnl:dfu: Download gadget and DFU function code clean up
The download gadget code and DFU function lacks of proper declarations
for the case when a target board wants to use only one of available usb
functions.
Moreover the relevant declarations have been moved to consistent
localization (like <dfu.h>).
Signed-off-by: Lukasz Majewski <l.majewski@samsung.com>
Cc: Marek Vasut <marex@denx.de>
Diffstat (limited to 'include/dfu.h')
-rw-r--r-- | include/dfu.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/dfu.h b/include/dfu.h index 6f4bba4..b2ecf1b 100644 --- a/include/dfu.h +++ b/include/dfu.h @@ -14,6 +14,7 @@ #include <common.h> #include <linux/list.h> #include <mmc.h> +#include <linux/usb/composite.h> enum dfu_device_type { DFU_DEV_MMC = 1, @@ -161,4 +162,12 @@ static inline int dfu_fill_entity_ram(struct dfu_entity *dfu, char *s) } #endif +#ifdef CONFIG_DFU_FUNCTION +int dfu_add(struct usb_configuration *c); +#else +int dfu_add(struct usb_configuration *c) +{ + return 0; +} +#endif #endif /* __DFU_ENTITY_H_ */ |