From 0370dbee4a989c3500ec0573386c66ddc2c2b632 Mon Sep 17 00:00:00 2001 From: Kumar Gala Date: Thu, 31 Jan 2019 13:20:44 -0600 Subject: [PATCH] usb: usb_dc: Replace CONFIG_ symbols that should be DT_ 1. Fix trailing comment for DT_USBHS_MAXIMUM_SPEED 2. Fix missed CONFIG_USB_HS_BASE_ADDRES that should be DT_USB_HS_BASE_ADDRESS Signed-off-by: Kumar Gala --- drivers/usb/device/usb_dc_sam.c | 2 +- drivers/usb/device/usb_dc_stm32.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/usb/device/usb_dc_sam.c b/drivers/usb/device/usb_dc_sam.c index 0eeeab9a7b4..a8b047bccc1 100644 --- a/drivers/usb/device/usb_dc_sam.c +++ b/drivers/usb/device/usb_dc_sam.c @@ -294,7 +294,7 @@ int usb_dc_attach(void) } #else regval |= USBHS_DEVCTRL_SPDCONF_NORMAL; -#endif /* CONFIG_USBHS_MAX_SPEED */ +#endif /* DT_USBHS_MAXIMUM_SPEED */ USBHS->USBHS_DEVCTRL = regval; /* Enable the USB clock */ diff --git a/drivers/usb/device/usb_dc_stm32.c b/drivers/usb/device/usb_dc_stm32.c index be0ff092966..2f2d5c7d973 100644 --- a/drivers/usb/device/usb_dc_stm32.c +++ b/drivers/usb/device/usb_dc_stm32.c @@ -55,7 +55,7 @@ #include LOG_MODULE_REGISTER(usb_dc_stm32); -#if defined(DT_USB_BASE_ADDRESS) && defined(CONFIG_USB_HS_BASE_ADDRES) +#if defined(DT_USB_BASE_ADDRESS) && defined(DT_USB_HS_BASE_ADDRESS) #error "Only one interface should be enabled at a time, OTG FS or OTG HS" #endif @@ -329,7 +329,7 @@ static u32_t usb_dc_stm32_get_maximum_speed(void) "USB controller will default to its maximum HW " "capability"); } -#endif /* CONFIG_USB_MAX_SPEED */ +#endif /* DT_USB_MAXIMUM_SPEED */ return speed; }