clk: Allow providers to configure min/max rates
authorStephen Boyd <sboyd@codeaurora.org>
Thu, 16 Jul 2015 19:50:27 +0000 (12:50 -0700)
committerStephen Boyd <sboyd@codeaurora.org>
Tue, 28 Jul 2015 18:58:50 +0000 (11:58 -0700)
commit9783c0d98501aa146ff467916ab4b8830a655d7c
treef484737cf90feb9093d15c82c2f6e5e432d14730
parent5c757456c16ce056a40a120e63235bc00c94ee7f
clk: Allow providers to configure min/max rates

clk providers are using the consumer APIs to set min/max rates on
the clock they're providing. To encourage clk providers to move
away from the consumer APIs, add a provider API to set the
min/max rate of a clock. The assumption is that this is done
before the clock can be requested via clk_get() and that the
clock rate is already within the boundaries of the min/max that's
configured.

Tested-by: Sudeep Holla <sudeep.holla@arm.com>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
drivers/clk/clk.c
include/linux/clk-provider.h