Skip to content

Commit cc61c9e

Browse files
rddunlapjernejsk
authored andcommitted
clk: sunxi: sun9i-cpus: fix kernel-doc warnings
Move the function description kernel-doc comment to immediately above the function implementation, correct the function name in the comment, then add a function parameter description to prevent these kernel-doc warnings: drivers/clk/sunxi/clk-sun9i-cpus.c:25: warning: expecting prototype for sun9i_a80_cpus_clk_setup(). Prototype was for SUN9I_CPUS_MAX_PARENTS() instead clk-sun9i-cpus.c:184: warning: Function parameter or struct member 'node' not described in 'sun9i_a80_cpus_setup' Signed-off-by: Randy Dunlap <[email protected]> Cc: Emilio López <[email protected]> Cc: Michael Turquette <[email protected]> Cc: Stephen Boyd <[email protected]> Cc: <[email protected]> Cc: Chen-Yu Tsai <[email protected]> Cc: Jernej Skrabec <[email protected]> Cc: Samuel Holland <[email protected]> Cc: <[email protected]> Cc: <[email protected]> Reviewed-by: Andre Przywara <[email protected]> Acked-by: Jernej Skrabec <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jernej Skrabec <[email protected]>
1 parent 233d331 commit cc61c9e

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

drivers/clk/sunxi/clk-sun9i-cpus.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,6 @@
1818

1919
static DEFINE_SPINLOCK(sun9i_a80_cpus_lock);
2020

21-
/**
22-
* sun9i_a80_cpus_clk_setup() - Setup function for a80 cpus composite clk
23-
*/
2421

2522
#define SUN9I_CPUS_MAX_PARENTS 4
2623
#define SUN9I_CPUS_MUX_PARENT_PLL4 3
@@ -180,6 +177,10 @@ static const struct clk_ops sun9i_a80_cpus_clk_ops = {
180177
.set_rate = sun9i_a80_cpus_clk_set_rate,
181178
};
182179

180+
/**
181+
* sun9i_a80_cpus_setup() - Setup function for a80 cpus composite clk
182+
* @node: &struct device_node for the clock
183+
*/
183184
static void sun9i_a80_cpus_setup(struct device_node *node)
184185
{
185186
const char *clk_name = node->name;

0 commit comments

Comments
 (0)