From a6921adcf200b3f2b6fadd78f99ea99b0f362e9c Mon Sep 17 00:00:00 2001 From: Lukasz Majewski Date: Tue, 17 Sep 2013 15:58:23 +0200 Subject: 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 ). Signed-off-by: Lukasz Majewski Cc: Marek Vasut --- include/dfu.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'include/dfu.h') diff --git a/include/dfu.h b/include/dfu.h index 6f4bba455b..b2ecf1bebe 100644 --- a/include/dfu.h +++ b/include/dfu.h @@ -14,6 +14,7 @@ #include #include #include +#include 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_ */ -- cgit v1.2.3