Skip to contentSkip to conversation

phycore_pcl063: Drop leading zero from USB vendor number

PATCH In review Fabio Estevam 2 participants 3 messages Mar 25, 2024 – Mar 30, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 phycore_pcl063: Drop leading zero from USB vendor number

CONFIG_USB_GADGET_VENDOR_NUM is a 16-bit number, so remove the leading zero.

---
 configs/phycore_pcl063_defconfig     | 2 +-
 configs/phycore_pcl063_ull_defconfig | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
configs/phycore_pcl063_defconfig +1 -1
index 6b00df1cffb3..017054a8e12b 100644
@@ -63,7 +63,7 @@ CONFIG_USB=y
 CONFIG_SPL_USB_HOST=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_MANUFACTURER="Phytec"
-CONFIG_USB_GADGET_VENDOR_NUM=0x01b67
+CONFIG_USB_GADGET_VENDOR_NUM=0x1b67
 CONFIG_USB_GADGET_PRODUCT_NUM=0x4fff
 CONFIG_CI_UDC=y
 CONFIG_USB_GADGET_DOWNLOAD=y
configs/phycore_pcl063_ull_defconfig +1 -1
index 6195fcfb73df..b3da43a5bf1e 100644
@@ -54,7 +54,7 @@ CONFIG_USB=y
 CONFIG_SPL_USB_HOST=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_MANUFACTURER="Phytec"
-CONFIG_USB_GADGET_VENDOR_NUM=0x01b67
+CONFIG_USB_GADGET_VENDOR_NUM=0x1b67
 CONFIG_USB_GADGET_PRODUCT_NUM=0x4fff
 CONFIG_CI_UDC=y
 CONFIG_USB_GADGET_DOWNLOAD=y
Signature · 1 line
2.34.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 28 lines · Fabio Estevam

CONFIG_USB_GADGET_VENDOR_NUM is a 16-bit number, so remove the leading zero.

---
  configs/phycore_pcl063_defconfig     | 2 +-
  configs/phycore_pcl063_ull_defconfig | 2 +-
  2 files changed, 2 insertions(+), 2 deletions(-)
configs/phycore_pcl063_defconfig +1 -1
index 6b00df1cffb3..017054a8e12b 100644
@@ -63,7 +63,7 @@ CONFIG_USB=y
  CONFIG_SPL_USB_HOST=y
  CONFIG_USB_GADGET=y
  CONFIG_USB_GADGET_MANUFACTURER="Phytec"
-CONFIG_USB_GADGET_VENDOR_NUM=0x01b67
+CONFIG_USB_GADGET_VENDOR_NUM=0x1b67
  CONFIG_USB_GADGET_PRODUCT_NUM=0x4fff
  CONFIG_CI_UDC=y
  CONFIG_USB_GADGET_DOWNLOAD=y
configs/phycore_pcl063_ull_defconfig +0 -0
index 6195fcfb73df..b3da43a5bf1e 100644

configs/phycore_pcl063_ull_defconfig CONFIG_USB=y · line 57

Quoted 5 lines
configs/phycore_pcl063_ull_defconfig +1 -1
@@ -54,7 +54,7 @@ CONFIG_USB=y
  CONFIG_SPL_USB_HOST=y
  CONFIG_USB_GADGET=y
  CONFIG_USB_GADGET_MANUFACTURER="Phytec"
-CONFIG_USB_GADGET_VENDOR_NUM=0x01b67
+CONFIG_USB_GADGET_VENDOR_NUM=0x1b67

+CC Yamada-san , can Kconfig somehow sanitize 16bit numbers like this ?