summaryrefslogtreecommitdiff
path: root/drivers/dfu
diff options
context:
space:
mode:
authorRob Herring <robh@kernel.org>2014-12-10 14:43:03 -0600
committerLukasz Majewski <l.majewski@samsung.com>2014-12-18 12:26:05 +0100
commitfe1b28c9f0954047f20b20253596b5ca9aef4a32 (patch)
treef4e2f85dc522e473ccb7f8df4615b12d4ae24988 /drivers/dfu
parent68ae882596524a2dde9da73283241b01d56375d5 (diff)
downloadu-boot-imx-fe1b28c9f0954047f20b20253596b5ca9aef4a32.zip
u-boot-imx-fe1b28c9f0954047f20b20253596b5ca9aef4a32.tar.gz
u-boot-imx-fe1b28c9f0954047f20b20253596b5ca9aef4a32.tar.bz2
usb, g_dnl: generalize DFU detach functions
In order to add detach functions for fastboot, make the DFU detach related functions common so they can be shared. Signed-off-by: Rob Herring <robh@kernel.org> Tested-by: Lukasz Majewski <l.majewski@samsung.com> [TestHW: Exynos4412-Trats2]
Diffstat (limited to 'drivers/dfu')
-rw-r--r--drivers/dfu/dfu.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/drivers/dfu/dfu.c b/drivers/dfu/dfu.c
index 14cb366..648f261 100644
--- a/drivers/dfu/dfu.c
+++ b/drivers/dfu/dfu.c
@@ -17,7 +17,6 @@
#include <linux/list.h>
#include <linux/compiler.h>
-static bool dfu_detach_request;
static LIST_HEAD(dfu_list);
static int dfu_alt_num;
static int alt_num_cnt;
@@ -39,21 +38,6 @@ __weak bool dfu_usb_get_reset(void)
return true;
}
-bool dfu_detach(void)
-{
- return dfu_detach_request;
-}
-
-void dfu_trigger_detach(void)
-{
- dfu_detach_request = true;
-}
-
-void dfu_clear_detach(void)
-{
- dfu_detach_request = false;
-}
-
static int dfu_find_alt_num(const char *s)
{
int i = 0;