diff mbox series

[1/2] usb: cdns3: imx: simplify clock name usage

Message ID 20230517152545.3404508-1-Frank.Li@nxp.com
State Accepted
Commit 7a053bf2b36622996356018a7a224c20d0ddcea9
Headers show
Series [1/2] usb: cdns3: imx: simplify clock name usage | expand

Commit Message

Frank Li May 17, 2023, 3:25 p.m. UTC
Simplifies the clock names in imx_cdns3_core_clks[]. Such as, renaming
"usb3_lpm_clk" to "lpm". The "usb3" prefix and "clk" suffix were
redundant.

Signed-off-by: Frank Li <Frank.Li@nxp.com>
---

This patch was missed at
https://lore.kernel.org/imx/20230327145523.3121810-1-Frank.Li@nxp.com/

 drivers/usb/cdns3/cdns3-imx.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

Comments

Peter Chen June 4, 2023, 11:23 p.m. UTC | #1
On 23-05-17 11:25:44, Frank Li wrote:
> Simplifies the clock names in imx_cdns3_core_clks[]. Such as, renaming
> "usb3_lpm_clk" to "lpm". The "usb3" prefix and "clk" suffix were
> redundant.
> 
> Signed-off-by: Frank Li <Frank.Li@nxp.com>

Acked-by: Peter Chen <peter.chen@kernel.org>
> ---
> 
> This patch was missed at
> https://lore.kernel.org/imx/20230327145523.3121810-1-Frank.Li@nxp.com/
> 
>  drivers/usb/cdns3/cdns3-imx.c | 10 +++++-----
>  1 file changed, 5 insertions(+), 5 deletions(-)
> 
> diff --git a/drivers/usb/cdns3/cdns3-imx.c b/drivers/usb/cdns3/cdns3-imx.c
> index 59860d1753fd..5d9ca3c3c71d 100644
> --- a/drivers/usb/cdns3/cdns3-imx.c
> +++ b/drivers/usb/cdns3/cdns3-imx.c
> @@ -105,11 +105,11 @@ static inline void cdns_imx_writel(struct cdns_imx *data, u32 offset, u32 value)
>  }
>  
>  static const struct clk_bulk_data imx_cdns3_core_clks[] = {
> -	{ .id = "usb3_lpm_clk" },
> -	{ .id = "usb3_bus_clk" },
> -	{ .id = "usb3_aclk" },
> -	{ .id = "usb3_ipg_clk" },
> -	{ .id = "usb3_core_pclk" },
> +	{ .id = "lpm" },
> +	{ .id = "bus" },
> +	{ .id = "aclk" },
> +	{ .id = "ipg" },
> +	{ .id = "core" },
>  };
>  
>  static int cdns_imx_noncore_init(struct cdns_imx *data)
> -- 
> 2.34.1
>
diff mbox series

Patch

diff --git a/drivers/usb/cdns3/cdns3-imx.c b/drivers/usb/cdns3/cdns3-imx.c
index 59860d1753fd..5d9ca3c3c71d 100644
--- a/drivers/usb/cdns3/cdns3-imx.c
+++ b/drivers/usb/cdns3/cdns3-imx.c
@@ -105,11 +105,11 @@  static inline void cdns_imx_writel(struct cdns_imx *data, u32 offset, u32 value)
 }
 
 static const struct clk_bulk_data imx_cdns3_core_clks[] = {
-	{ .id = "usb3_lpm_clk" },
-	{ .id = "usb3_bus_clk" },
-	{ .id = "usb3_aclk" },
-	{ .id = "usb3_ipg_clk" },
-	{ .id = "usb3_core_pclk" },
+	{ .id = "lpm" },
+	{ .id = "bus" },
+	{ .id = "aclk" },
+	{ .id = "ipg" },
+	{ .id = "core" },
 };
 
 static int cdns_imx_noncore_init(struct cdns_imx *data)