mirror of
https://github.com/AsahiLinux/u-boot
synced 2025-03-17 15:27:00 +00:00
usb:dfu:g_dnl: Refactoring the string definition code for g_dnl driver
The manufacturer and product IDs are dynamically assigned when gadget is bind. Now the IDs aren't assigned at struct g_dnl_string_defs definition. Signed-off-by: Lukasz Majewski <l.majewski@samsung.com> Cc: Marek Vasut <marex@denx.de> Cc: "Egli, Samuel" <samuel.egli@siemens.com>
This commit is contained in:
parent
cfc2d0d632
commit
c4219a82cd
1 changed files with 7 additions and 4 deletions
|
@ -56,11 +56,14 @@ static struct usb_device_descriptor device_desc = {
|
|||
.bNumConfigurations = 1,
|
||||
};
|
||||
|
||||
/* static strings, in UTF-8 */
|
||||
/*
|
||||
* static strings, in UTF-8
|
||||
* IDs for those strings are assigned dynamically at g_dnl_bind()
|
||||
*/
|
||||
static struct usb_string g_dnl_string_defs[] = {
|
||||
{ 0, manufacturer, },
|
||||
{ 1, product, },
|
||||
{ } /* end of list */
|
||||
{.s = manufacturer},
|
||||
{.s = product},
|
||||
{ } /* end of list */
|
||||
};
|
||||
|
||||
static struct usb_gadget_strings g_dnl_string_tab = {
|
||||
|
|
Loading…
Add table
Reference in a new issue