Skip to contentSkip to conversation

clk: sifive: Fix kernel-doc

PATCH Applied Yang Li 3 participants 3 messages May 24, 2021 – Jun 2, 2021

Subsystems (3)
lore
Share & tools
lore

Yang Li

author
#0 lore raw

PATCH 1/1 clk: sifive: Fix kernel-doc

Fix function name in sifive-prci.c kernel-doc comment to remove a warning.

drivers/clk/sifive/sifive-prci.c:573: warning: expecting prototype for sifive_prci_init(). Prototype was for sifive_prci_probe() instead

---
 drivers/clk/sifive/sifive-prci.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/clk/sifive/sifive-prci.c +1 -1
index 0d79ba3..80a288c 100644
@@ -564,7 +564,7 @@ static int __prci_register_clocks(struct device *dev, struct __prci_data *pd,
 }
 
 /**
- * sifive_prci_init() - initialize prci data and check parent count
+ * sifive_prci_probe() - initialize prci data and check parent count
  * @pdev: platform device pointer for the prci
  *
  * Return: 0 upon success or a negative error code upon failure.
Signature · 1 line
1.8.3.1
maintainer Acked-by Reviewed-by on v1 1/1
#1 lore raw
Quoted 17 lines · On Mon, 24 May 2021 03:22:10 PDT (-0700), [email protected] wrote:

Fix function name in sifive-prci.c kernel-doc comment to remove a warning.

drivers/clk/sifive/sifive-prci.c:573: warning: expecting prototype for sifive_prci_init(). Prototype was for sifive_prci_probe() instead

---
 drivers/clk/sifive/sifive-prci.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/clk/sifive/sifive-prci.c +0 -0
index 0d79ba3..80a288c 100644

drivers/clk/sifive/sifive-prci.c static int __prci_register_clocks(struct device *dev, struct __prci_data *pd, · line 570

Quoted 8 lines
drivers/clk/sifive/sifive-prci.c +1 -1
@@ -564,7 +564,7 @@ static int __prci_register_clocks(struct device *dev, struct __prci_data *pd,
 }
 
 /**
- * sifive_prci_init() - initialize prci data and check parent count
+ * sifive_prci_probe() - initialize prci data and check parent count
  * @pdev: platform device pointer for the prci
  *
  * Return: 0 upon success or a negative error code upon failure.

I'm assuming this is targeted for the clock tree, but LMK if you want me to take it.

Thanks!