Browse Source

usb: gadget: g_dnl: don't set iProduct nor iSerialNumber

Both these numbers are calculated in runtime and dynamically assigned
to the device descriptor during bind().

Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
(cherry picked from commit 207835b13f)
Felipe Balbi 4 years ago
committed by Li Jun
parent
commit
00292393c6
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      drivers/usb/gadget/g_dnl.c

+ 2
- 2
drivers/usb/gadget/g_dnl.c View File

@ -62,8 +62,8 @@ static struct usb_device_descriptor device_desc = {
.idVendor = __constant_cpu_to_le16(CONFIG_G_DNL_VENDOR_NUM),
.idProduct = __constant_cpu_to_le16(CONFIG_G_DNL_PRODUCT_NUM),
.iProduct = STRING_PRODUCT,
.iSerialNumber = STRING_SERIAL,
/* .iProduct = DYNAMIC */
/* .iSerialNumber = DYNAMIC */
.bNumConfigurations = 1,
};


Loading…
Cancel
Save