PM / OPP: get/put regulators from OPP core
authorViresh Kumar <viresh.kumar@linaro.org>
Tue, 9 Feb 2016 05:00:33 +0000 (10:30 +0530)
committerAlex Shi <alex.shi@linaro.org>
Fri, 8 Apr 2016 03:24:24 +0000 (11:24 +0800)
commitc070696dd69afe9d5432fde66270d29e36da8da2
treeca315f2de79935c3eca147c9a3e0f57ff146609c
parent5b9202b77c8d670f23581ddebd36ce12a619d9f2
PM / OPP: get/put regulators from OPP core

This allows the OPP core to request/free the regulator resource,
attached to a device OPP. The regulator device is fetched using the name
provided by the driver, while calling: dev_pm_opp_set_regulator().

This will work for both OPP-v1 and v2 bindings.

This is a preliminary step for moving the OPP switching logic into the
OPP core.

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>
(cherry picked from commit 9f8ea969d5cfdd4353d2adb004e8e2286b984369)
Signed-off-by: Alex Shi <alex.shi@linaro.org>
drivers/base/power/opp/core.c
drivers/base/power/opp/opp.h
include/linux/pm_opp.h