summaryrefslogtreecommitdiff
path: root/include
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 /include
parent68ae882596524a2dde9da73283241b01d56375d5 (diff)
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 'include')
-rw-r--r--include/dfu.h3
-rw-r--r--include/g_dnl.h4
2 files changed, 4 insertions, 3 deletions
diff --git a/include/dfu.h b/include/dfu.h
index f1a71c7902..c27856cb72 100644
--- a/include/dfu.h
+++ b/include/dfu.h
@@ -150,9 +150,6 @@ struct dfu_entity *dfu_get_entity(int alt);
char *dfu_extract_token(char** e, int *n);
void dfu_trigger_reset(void);
int dfu_get_alt(char *name);
-bool dfu_detach(void);
-void dfu_trigger_detach(void);
-void dfu_clear_detach(void);
int dfu_init_env_entities(char *interface, char *devstr);
unsigned char *dfu_get_buf(struct dfu_entity *dfu);
unsigned char *dfu_free_buf(void);
diff --git a/include/g_dnl.h b/include/g_dnl.h
index 1b1b35e0e1..4eeb5e4070 100644
--- a/include/g_dnl.h
+++ b/include/g_dnl.h
@@ -39,4 +39,8 @@ int g_dnl_register(const char *s);
void g_dnl_unregister(void);
void g_dnl_set_serialnumber(char *);
+bool g_dnl_detach(void);
+void g_dnl_trigger_detach(void);
+void g_dnl_clear_detach(void);
+
#endif /* __G_DOWNLOAD_H_ */