* [PATCH] drivers: clk: sifive: fu740-prci: replace 'pciaux' with 'pcieaux'
@ 2021-06-28 11:13 Green Wan
2021-06-28 11:42 ` Leo Liang
0 siblings, 1 reply; 2+ messages in thread
From: Green Wan @ 2021-06-28 11:13 UTC (permalink / raw)
Cc: bmeng.cn, schwab, david.abdurachmanov, ycliang, rick, Green Wan,
Lukasz Majewski, open list
Replace 'pciaux' with 'pcieaux', including name string and function
prefix. The old name string, 'pciaux', might cause an error if PCIe
driver is changed to use clk_get_by_name() with 'pcieaux' to get
clock.
Signed-off-by: Green Wan <green.wan@sifive.com>
---
drivers/clk/sifive/fu740-prci.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/clk/sifive/fu740-prci.c b/drivers/clk/sifive/fu740-prci.c
index 9a642c1c99..b025050e22 100644
--- a/drivers/clk/sifive/fu740-prci.c
+++ b/drivers/clk/sifive/fu740-prci.c
@@ -20,7 +20,7 @@
#include "sifive-prci.h"
#include <asm/io.h>
-int sifive_prci_fu740_pciauxclk_enable(struct __prci_clock *pc, bool enable)
+int sifive_prci_fu740_pcieauxclk_enable(struct __prci_clock *pc, bool enable)
{
struct __prci_wrpll_data *pwd = pc->pwd;
struct __prci_data *pd = pc->pd;
@@ -98,7 +98,7 @@ static const struct __prci_clock_ops sifive_fu740_prci_hfpclkplldiv_clk_ops = {
};
static const struct __prci_clock_ops sifive_fu740_prci_pcieaux_clk_ops = {
- .enable_clk = sifive_prci_fu740_pciauxclk_enable,
+ .enable_clk = sifive_prci_fu740_pcieauxclk_enable,
};
/* List of clock controls provided by the PRCI */
@@ -150,7 +150,7 @@ struct __prci_clock __prci_init_clocks_fu740[] = {
.ops = &sifive_fu740_prci_hfpclkplldiv_clk_ops,
},
[PRCI_CLK_PCIEAUX] {
- .name = "pciaux",
+ .name = "pcieaux",
.parent_name = "",
.ops = &sifive_fu740_prci_pcieaux_clk_ops,
.pwd = &__prci_pcieaux_data,
--
2.17.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] drivers: clk: sifive: fu740-prci: replace 'pciaux' with 'pcieaux'
2021-06-28 11:13 [PATCH] drivers: clk: sifive: fu740-prci: replace 'pciaux' with 'pcieaux' Green Wan
@ 2021-06-28 11:42 ` Leo Liang
0 siblings, 0 replies; 2+ messages in thread
From: Leo Liang @ 2021-06-28 11:42 UTC (permalink / raw)
To: Green Wan; +Cc: open list
On Mon, Jun 28, 2021 at 07:13:08PM +0800, Green Wan wrote:
> Replace 'pciaux' with 'pcieaux', including name string and function
> prefix. The old name string, 'pciaux', might cause an error if PCIe
> driver is changed to use clk_get_by_name() with 'pcieaux' to get
> clock.
>
> Signed-off-by: Green Wan <green.wan@sifive.com>
> ---
> drivers/clk/sifive/fu740-prci.c | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-06-28 11:43 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-06-28 11:13 [PATCH] drivers: clk: sifive: fu740-prci: replace 'pciaux' with 'pcieaux' Green Wan
2021-06-28 11:42 ` Leo Liang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox