diff mbox series

usb: dwc3: Fix renaming SPL_USB_HOST_SUPPORT to SPL_USB_HOST

Message ID 20230823142227.69923-1-oleksandr.suvorov@foundries.io
State Changes Requested
Delegated to: Tom Rini
Headers show
Series usb: dwc3: Fix renaming SPL_USB_HOST_SUPPORT to SPL_USB_HOST | expand

Commit Message

Oleksandr Suvorov Aug. 23, 2023, 2:22 p.m. UTC
In the usb/dwc3-layerscape driver the first option should be renamed
to the latter as well. Do it.

Fixes: 333e4a621df ("Rename SPL_USB_HOST_SUPPORT to SPL_USB_HOST")
Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@foundries.io>
---

 drivers/usb/dwc3/dwc3-layerscape.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

Tom Rini Aug. 23, 2023, 5:11 p.m. UTC | #1
On Wed, Aug 23, 2023 at 05:22:19PM +0300, Oleksandr Suvorov wrote:

> In the usb/dwc3-layerscape driver the first option should be renamed
> to the latter as well. Do it.
> 
> Fixes: 333e4a621df ("Rename SPL_USB_HOST_SUPPORT to SPL_USB_HOST")
> Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@foundries.io>
> ---
> 
>  drivers/usb/dwc3/dwc3-layerscape.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/usb/dwc3/dwc3-layerscape.c b/drivers/usb/dwc3/dwc3-layerscape.c
> index 79cf71f7a85..77801c10084 100644
> --- a/drivers/usb/dwc3/dwc3-layerscape.c
> +++ b/drivers/usb/dwc3/dwc3-layerscape.c
> @@ -134,7 +134,7 @@ U_BOOT_DRIVER(dwc3_layerscape_peripheral) = {
>  };
>  #endif
>  
> -#if defined(CONFIG_SPL_USB_HOST_SUPPORT) || \
> +#if defined(CONFIG_SPL_USB_HOST) || \
>  	!defined(CONFIG_SPL_BUILD) && defined(CONFIG_USB_HOST)
>  static int dwc3_layerscape_host_probe(struct udevice *dev)
>  {
> @@ -194,7 +194,7 @@ static int dwc3_layerscape_bind(struct udevice *dev)
>  		driver = "dwc3-layerscape-peripheral";
>  		break;
>  #endif
> -#if defined(CONFIG_SPL_USB_HOST_SUPPORT) || !defined(CONFIG_SPL_BUILD)
> +#if defined(CONFIG_SPL_USB_HOST) || !defined(CONFIG_SPL_BUILD)
>  	case USB_DR_MODE_HOST:
>  		dev_dbg(dev, "Using host mode\n");
>  		driver = "dwc3-layerscape-host";

This is incomplete as now that we have CONFIG_SPL_USB_HOST instead of
CONFIG_SPL_USB_HOST_SUPPORT that means we can use
CONFIG_IS_ENABLED(USB_HOST) which is true for (SPL_BUILD&&SPL_USB_HOST) ||
(!SPL_BUILD&&USB_HOST).
diff mbox series

Patch

diff --git a/drivers/usb/dwc3/dwc3-layerscape.c b/drivers/usb/dwc3/dwc3-layerscape.c
index 79cf71f7a85..77801c10084 100644
--- a/drivers/usb/dwc3/dwc3-layerscape.c
+++ b/drivers/usb/dwc3/dwc3-layerscape.c
@@ -134,7 +134,7 @@  U_BOOT_DRIVER(dwc3_layerscape_peripheral) = {
 };
 #endif
 
-#if defined(CONFIG_SPL_USB_HOST_SUPPORT) || \
+#if defined(CONFIG_SPL_USB_HOST) || \
 	!defined(CONFIG_SPL_BUILD) && defined(CONFIG_USB_HOST)
 static int dwc3_layerscape_host_probe(struct udevice *dev)
 {
@@ -194,7 +194,7 @@  static int dwc3_layerscape_bind(struct udevice *dev)
 		driver = "dwc3-layerscape-peripheral";
 		break;
 #endif
-#if defined(CONFIG_SPL_USB_HOST_SUPPORT) || !defined(CONFIG_SPL_BUILD)
+#if defined(CONFIG_SPL_USB_HOST) || !defined(CONFIG_SPL_BUILD)
 	case USB_DR_MODE_HOST:
 		dev_dbg(dev, "Using host mode\n");
 		driver = "dwc3-layerscape-host";