PM / OPP: Parse 'opp-<prop>-<name>' bindings
authorViresh Kumar <viresh.kumar@linaro.org>
Wed, 9 Dec 2015 02:31:47 +0000 (08:01 +0530)
committerAlex Shi <alex.shi@linaro.org>
Fri, 8 Apr 2016 03:22:24 +0000 (11:22 +0800)
commit6a0f8e913de021196bded343c6742fa0db34a1a5
treedd76699428b98837b8be6d6c5770a6bae557c3df
parentae6a227802225358803c9749a703d11741229c86
PM / OPP: Parse 'opp-<prop>-<name>' bindings

OPP bindings (for few properties) allow a platform to choose a
value/range among a set of available options. The options are present as
opp-<prop>-<name>, where the platform needs to supply the <name> string.

The OPP properties which allow such an option are: opp-microvolt and
opp-microamp.

Add support to the OPP-core to parse these bindings, by introducing
dev_pm_opp_{set|put}_prop_name() APIs.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Tested-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
(cherry picked from commit 01fb4d3c39d35b725441e8a9a26b3f3ad67793ed)
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