diff options
author | Stephen Boyd <[email protected]> | 2019-08-26 14:20:42 -0700 |
---|---|---|
committer | Stephen Boyd <[email protected]> | 2019-09-05 11:51:31 -0700 |
commit | 226fd70209451428c563977f5ce022a41d077110 (patch) | |
tree | 68f7733b1d36a99452588d8af3174af617a6d564 /lib/test_overflow.c | |
parent | ef13e55c27e128b6d84aa939dcc565b1d2ee7724 (diff) |
clk: Document of_parse_clkspec() some more
The return value of of_parse_clkspec() is peculiar. If the function is
called with a NULL argument for 'name' it will return -ENOENT, but if
it's called with a non-NULL argument for 'name' it will return -EINVAL.
This peculiarity is documented by commit 5c56dfe63b6e ("clk: Add comment
about __of_clk_get_by_name() error values").
Let's further document this function so that it's clear what the return
value is and how to use the arguments to parse clk specifiers.
Cc: Phil Edworthy <[email protected]>
Signed-off-by: Stephen Boyd <[email protected]>
Link: https://lkml.kernel.org/r/[email protected]
Reviewed-by: Phil Edworthy <[email protected]>
Diffstat (limited to 'lib/test_overflow.c')
0 files changed, 0 insertions, 0 deletions