]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6f714ac524b29a4a6c9f14eb43fd7f71988eee0d
treef13c5a91b6e60dc0b7e711454a5d65ea41aa2664
parentf36d44a29ddfdd979066170d3c4b65ac198aadb8
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