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 --- drivers/usb/gadget/f_dfu.h | 3 --- drivers/usb/gadget/g_dnl.c | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) (limited to 'drivers/usb') diff --git a/drivers/usb/gadget/f_dfu.h b/drivers/usb/gadget/f_dfu.h index 34a4dde5aa..cc2c45567b 100644 --- a/drivers/usb/gadget/f_dfu.h +++ b/drivers/usb/gadget/f_dfu.h @@ -82,7 +82,4 @@ struct dfu_function_descriptor { __le16 wTransferSize; __le16 bcdDFUVersion; } __packed; - -/* configuration-specific linkup */ -int dfu_add(struct usb_configuration *c); #endif /* __F_DFU_H_ */ diff --git a/drivers/usb/gadget/g_dnl.c b/drivers/usb/gadget/g_dnl.c index 29d08a3a22..40868c034e 100644 --- a/drivers/usb/gadget/g_dnl.c +++ b/drivers/usb/gadget/g_dnl.c @@ -15,7 +15,7 @@ #include #include -#include "f_dfu.h" +#include #include "gadget_chips.h" #include "composite.c" -- cgit