]> git.baikalelectronics.ru Git - kernel.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)
commit88f2c561d8ba28a6dec319cd801ae90d90bf9d32
tree803aecc489bac86074b95d25cbdb2bbc426ffb38
parenta6d70bd50f7d5895f282df9fb9b775d73fd79b94
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