clk: Document and simplify clk_core_get_rate_nolock()
authorStephen Boyd <sboyd@kernel.org>
Fri, 1 Feb 2019 23:39:50 +0000 (15:39 -0800)
committerStephen Boyd <sboyd@kernel.org>
Fri, 1 Feb 2019 23:40:17 +0000 (15:40 -0800)
commit73d4f945f6eacc8f4fadd61020faea3c6dc602dc
treef13c5a91b6e60dc0b7e711454a5d65ea41aa2664
parent7374faa92edce7af6d69d0a2968198e9b919a281
clk: Document and simplify clk_core_get_rate_nolock()

This function uses a few gotos and doesn't explain why parents and
numbers of parents are being checked before returning different values
for the clk's rate. Document and simplify this function somewhat to make
this better.

Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/clk.c