]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
clk: Add __clk_mux_determine_rate_closest
authorStephen Boyd <sboyd@codeaurora.org>
Tue, 20 Jan 2015 02:05:28 +0000 (18:05 -0800)
committerMichael Turquette <mturquette@linaro.org>
Tue, 27 Jan 2015 19:48:39 +0000 (11:48 -0800)
commit15a02c1f6dd7c2bb150c61d00ffb33f584ff2288
tree803aecc489bac86074b95d25cbdb2bbc426ffb38
parent52bba9809a954d72bc77773bd560b9724b495eb7
clk: Add __clk_mux_determine_rate_closest

Some clock drivers want to find the closest rate on the input of
a mux instead of a rate that's less than or equal to the desired
rate. Add a generic mux function to support this.

Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Tested-by: Kenneth Westfield <kwestfie@codeaurora.org>
Signed-off-by: Michael Turquette <mturquette@linaro.org>
drivers/clk/clk.c
include/linux/clk-provider.h