clk: Fix clk_get_parent() documentation
The clk_get_parent() documentation in the header states that it will
return a valid pointer, or an error pointer on failure.
However, the documentation in the source file, and the code itself, will
return also return NULL if there isn't any parent for that clock. Let's
mention it.
An orphan clock should return NULL too, so let's add a test for it.
Tested-by: Alexander Stein <alexander.stein@ew.tq-group.com> # imx8mp
Tested-by: Marek Szyprowski <m.szyprowski@samsung.com> # exynos4210, meson g12b
Signed-off-by:
Maxime Ripard <maxime@cerno.tech>
Loading
Please register or sign in to comment