mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-15 19:51:37 +00:00
clk: fix clk_get_rate() documentation
Improve clk_get_rate() @return documentation that otherwise is a bit ambiguous. At the moment I expect to return 0 as error since the return type is 'ulong', instead the function really returns negative value in case the corresponding function pointer is null and returns 0 if the clock is invalid. Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com> Reviewed-by: Sean Anderson <seanga2@gmail.com>
This commit is contained in:
parent
ade37460a9
commit
9e578f6340
1 changed files with 2 additions and 1 deletions
|
@ -389,7 +389,8 @@ 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, 0 for invalid clock, or -ve error code
|
||||
* for other errors.
|
||||
*/
|
||||
ulong clk_get_rate(struct clk *clk);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue