summaryrefslogtreecommitdiffstats
path: root/drivers/clk/imx/clk-imxrt1050.c
diff options
context:
space:
mode:
authorDario Binacchi <dario.binacchi@amarulasolutions.com>2022-11-13 19:08:39 +0100
committerAbel Vesa <abel.vesa@linaro.org>2022-11-25 10:22:15 +0100
commit8178e245fa953f793670147368642717fcdb302e (patch)
tree52bb5a7ab57dc23e31aea748c15abe5420c2362a /drivers/clk/imx/clk-imxrt1050.c
parentclk: imx8mn: fix imx8mn_enet_phy_sels clocks list (diff)
downloadlinux-8178e245fa953f793670147368642717fcdb302e.tar.xz
linux-8178e245fa953f793670147368642717fcdb302e.zip
clk: imx: rename imx_obtain_fixed_clk_hw() to imx_get_clk_hw_by_name()
The imx_obtain_fixed_clk_hw name was wrong and misleading. Renaming it to imx_get_clk_hw_by_name clarifies the purpose of the function, and will allow it to be used not only for fixed rate clocks but also in wider contexts. No functional changes intended. The replacements were made with the following command: grep -rl 'imx_obtain_fixed_clk_hw' ./ | \ xargs sed -i 's/imx_obtain_fixed_clk_hw/imx_get_clk_hw_by_name/g' Tested on a BSH SystemMaster (SMM) S2 board. Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com> Reviewed-by: Abel Vesa <abel.vesa@linaro.org> Signed-off-by: Abel Vesa <abel.vesa@linaro.org> Link: https://lore.kernel.org/r/20221113180839.1625832-1-dario.binacchi@amarulasolutions.com
Diffstat (limited to 'drivers/clk/imx/clk-imxrt1050.c')
-rw-r--r--drivers/clk/imx/clk-imxrt1050.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/clk/imx/clk-imxrt1050.c b/drivers/clk/imx/clk-imxrt1050.c
index 39f77c03b892..e972abd299a8 100644
--- a/drivers/clk/imx/clk-imxrt1050.c
+++ b/drivers/clk/imx/clk-imxrt1050.c
@@ -50,7 +50,7 @@ static int imxrt1050_clocks_probe(struct platform_device *pdev)
clk_hw_data->num = IMXRT1050_CLK_END;
hws = clk_hw_data->hws;
- hws[IMXRT1050_CLK_OSC] = imx_obtain_fixed_clk_hw(np, "osc");
+ hws[IMXRT1050_CLK_OSC] = imx_get_clk_hw_by_name(np, "osc");
anp = of_find_compatible_node(NULL, NULL, "fsl,imxrt-anatop");
pll_base = of_iomap(anp, 0);