PM / OPP: Parse 'opp-<prop>-<name>' bindings
authorViresh Kumar <viresh.kumar@linaro.org>
Wed, 9 Dec 2015 02:31:47 +0000 (08:01 +0530)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 10 Dec 2015 22:08:51 +0000 (23:08 +0100)
commit01fb4d3c39d35b725441e8a9a26b3f3ad67793ed
treeb19abc542391b4c9d0e0280b1cc6064a43030572
parent7de36b0aa51a5a59e28fb2da768fa3ab07de0674
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>
drivers/base/power/opp/core.c
drivers/base/power/opp/opp.h
include/linux/pm_opp.h