diff options
author | Rob Herring <robh@kernel.org> | 2014-12-10 20:43:03 (GMT) |
---|---|---|
committer | Lukasz Majewski <l.majewski@samsung.com> | 2014-12-18 11:26:05 (GMT) |
commit | fe1b28c9f0954047f20b20253596b5ca9aef4a32 (patch) | |
tree | f4e2f85dc522e473ccb7f8df4615b12d4ae24988 /drivers/dfu/dfu.c | |
parent | 68ae882596524a2dde9da73283241b01d56375d5 (diff) | |
download | u-boot-fe1b28c9f0954047f20b20253596b5ca9aef4a32.tar.xz |
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/dfu.c')
-rw-r--r-- | drivers/dfu/dfu.c | 16 |
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; |