Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 226fd702 authored by Stephen Boyd's avatar Stephen Boyd
Browse files

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 5c56dfe6 ("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 <phil.edworthy@renesas.com>
Signed-off-by: default avatarStephen Boyd <sboyd@kernel.org>
Link: https://lkml.kernel.org/r/20190826212042.48642-1-sboyd@kernel.org


Reviewed-by: default avatarPhil Edworthy <phil.edworthy@renesas.com>
parent ef13e55c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment