summaryrefslogtreecommitdiff
path: root/include/g_dnl.h
diff options
context:
space:
mode:
authorPatrick Delaunay <patrick.delaunay@st.com>2020-03-18 11:24:46 +0300
committerPatrick Delaunay <patrick.delaunay@st.com>2020-05-14 10:02:12 +0300
commitbcd677f246e872c2c945d667ac1044cb735c8e14 (patch)
treeed4e0fe8f8c567883ff47915ce97ce4aac05330f /include/g_dnl.h
parent1a803f6e14c2d0065da2142108e3849e79d8d7dd (diff)
downloadu-boot-bcd677f246e872c2c945d667ac1044cb735c8e14.tar.xz
usb: gadget: g_dnl: add function g_dnl_set_product
Add a function g_dnl_set_product to change the Product string used in USB enumeration in any command based on download gadget. If the function is called with NULL pointer, the product string is set to the default value (product[] = "USB download gadget"). Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com> Reviewed-by: Patrice Chotard <patrice.chotard@st.com>
Diffstat (limited to 'include/g_dnl.h')
-rw-r--r--include/g_dnl.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/g_dnl.h b/include/g_dnl.h
index 6d461c73d3..836ee602c8 100644
--- a/include/g_dnl.h
+++ b/include/g_dnl.h
@@ -38,6 +38,7 @@ int g_dnl_board_usb_cable_connected(void);
int g_dnl_register(const char *s);
void g_dnl_unregister(void);
void g_dnl_set_serialnumber(char *);
+void g_dnl_set_product(const char *s);
bool g_dnl_detach(void);
void g_dnl_trigger_detach(void);