]> git.baikalelectronics.ru Git - kernel.git/commit
PM / OPP: Add dev_pm_opp_set_rate()
authorViresh Kumar <viresh.kumar@linaro.org>
Tue, 9 Feb 2016 05:00:39 +0000 (10:30 +0530)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 10 Feb 2016 00:11:54 +0000 (01:11 +0100)
commit05615774b91acdc524757e2b1aa86582be05ac31
tree5591576208af1bcf27a90beaec4b64895bb703b8
parent9a05c40b984bbbe61ba5c18c9e3dde4119bc6ec9
PM / OPP: Add dev_pm_opp_set_rate()

This adds a routine, dev_pm_opp_set_rate(), responsible for configuring
power-supply and clock source for an OPP.

The OPP is found by matching against the target_freq passed to the
routine. This shall replace similar code present in most of the OPP
users and help simplify them a lot.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Reviewed-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/base/power/opp/core.c
include/linux/pm_opp.h