]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 10 Feb 2016 00:11:53 +0000 (01:11 +0100)
commitf1c79445f2239f001234f54dd0c668bad0c351c4
tree89a110d6f65b74a62667b490e241bc3968dad687
parent2827ae15dc0f2c90e519a70f2b9ddebe33f2361f
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>
drivers/base/power/opp/core.c
drivers/base/power/opp/opp.h
include/linux/pm_opp.h