[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20210307140626.22699-1-paul@crapouillou.net>
Date: Sun, 7 Mar 2021 14:06:26 +0000
From: Paul Cercueil <paul@...pouillou.net>
To: Russell King <linux@...linux.org.uk>
Cc: od@...c.me, linux-clk@...r.kernel.org,
linux-kernel@...r.kernel.org, Paul Cercueil <paul@...pouillou.net>
Subject: [PATCH] clk: Fix doc of clk_get_parent
On error, or when the passed parameter is NULL, the return value is NULL
and not a PTR_ERR()-encoded value.
Signed-off-by: Paul Cercueil <paul@...pouillou.net>
---
include/linux/clk.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/linux/clk.h b/include/linux/clk.h
index 266e8de3cb51..96031b5f6933 100644
--- a/include/linux/clk.h
+++ b/include/linux/clk.h
@@ -745,7 +745,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);
--
2.30.1
Powered by blists - more mailing lists