clk: Add __clk_mux_determine_rate_closest
authorStephen Boyd <[email protected]>
Tue, 20 Jan 2015 02:05:28 +0000 (18:05 -0800)
committerMichael Turquette <[email protected]>
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 <[email protected]>
Tested-by: Kenneth Westfield <[email protected]>
Signed-off-by: Michael Turquette <[email protected]>
drivers/clk/clk.c
include/linux/clk-provider.h