Skip to contentSkip to conversation

clk: Fix comment to clk_get_parent

PATCH In review Alexander Sverdlin 2 participants 2 messages May 14, 2017

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 clk: Fix comment to clk_get_parent

There is no single implementation of clk_get_parent, which returns ERR_PTR(). Therefore, fix the comment in common header linux/clk.h, which claims otherwise.

---
 include/linux/clk.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/linux/clk.h +1 -1
index 024cd07870d0..93b1857085fa 100644
@@ -417,7 +417,7 @@ int clk_set_parent(struct clk *clk, struct clk *parent);
  * @clk: clock source
  *
  * Returns struct clk corresponding to parent clock source, or
- * valid IS_ERR() condition containing errno.
+ * NULL on error.
  */
 struct clk *clk_get_parent(struct clk *clk);
 
Signature · 1 line
2.12.2
#1 lore raw
Quoted 2 lines · Alexander Sverdlin

There is no single implementation of clk_get_parent, which returns ERR_PTR(). Therefore, fix the comment in common header linux/clk.h, which claims otherwise.

clk.h is the API definition, not the documentation of the implementation(s). Please leave it as-is.

Signature · 3 lines
RMK's Patch system: http://www.armlinux.org.uk/developer/patches/
FTTC broadband for 0.8mile line: currently at 9.6Mbps down 400kbps up
according to speedtest.net.