clk: Improve flags doc for of_clk_detect_critical()
authorGeert Uytterhoeven <geert+renesas@glider.be>
Wed, 3 Jan 2018 11:06:14 +0000 (12:06 +0100)
committerStephen Boyd <sboyd@codeaurora.org>
Thu, 4 Jan 2018 00:02:08 +0000 (16:02 -0800)
The "flags" parameter passed to of_clk_detect_critical() cannot be a
pointer to a real clk_core.flags field, as clk_core is private to the
clock framework internals.

Change the comment to refer to top-level framework flags instead.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
drivers/clk/clk.c

index efbc802..fe2d43e 100644 (file)
@@ -3912,7 +3912,7 @@ static int parent_ready(struct device_node *np)
  * of_clk_detect_critical() - set CLK_IS_CRITICAL flag from Device Tree
  * @np: Device node pointer associated with clock provider
  * @index: clock index
- * @flags: pointer to clk_core->flags
+ * @flags: pointer to top-level framework flags
  *
  * Detects if the clock-critical property exists and, if so, sets the
  * corresponding CLK_IS_CRITICAL flag.