u-boot.lists.denx.de archive mirror
 help / color / mirror / Atom feed
* [PATCH] clk: fix clk_get_rate() documentation
@ 2021-02-10 17:37 Giulio Benetti
  2021-02-12 23:25 ` Sean Anderson
  0 siblings, 1 reply; 16+ messages in thread
From: Giulio Benetti @ 2021-02-10 17:37 UTC (permalink / raw)
  To: u-boot

clk_get_rate() can't and doesn't return -ve on error, it actually returns 0
on error or a value greater than 0 on success. So let's fix its
documentation.

Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com>
---
 include/clk.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/clk.h b/include/clk.h
index ca6b85fa6f..a833d6a27b 100644
--- a/include/clk.h
+++ b/include/clk.h
@@ -344,7 +344,7 @@ int clk_free(struct clk *clk);
  *
  * @clk:	A clock struct that was previously successfully requested by
  *		clk_request/get_by_*().
- * @return clock rate in Hz, or -ve error code.
+ * @return clock rate in Hz on success, or 0 on error.
  */
 ulong clk_get_rate(struct clk *clk);
 
-- 
2.25.1

^ permalink raw reply related	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2021-12-15 19:06 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-10 17:37 [PATCH] clk: fix clk_get_rate() documentation Giulio Benetti
2021-02-12 23:25 ` Sean Anderson
2021-02-13  1:17   ` Giulio Benetti
2021-02-13  4:17     ` Simon Glass
2021-02-13  8:47       ` Giulio Benetti
2021-02-13 18:24         ` Simon Glass
2021-02-14  2:05           ` Giulio Benetti
2021-02-14  2:17           ` [PATCH v2] " Giulio Benetti
2021-02-14  2:58             ` Jesse T
2021-02-14  3:17               ` Giulio Benetti
2021-02-14  3:49                 ` Jesse T
2021-02-22 19:13                   ` Heinrich Schuchardt
2021-02-23  0:25                     ` Giulio Benetti
2021-04-04 18:56                       ` Giulio Benetti
2021-11-24  4:01             ` Sean Anderson
2021-12-15 19:05             ` Sean Anderson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).