PM / OPP: Implement of_dev_pm_opp_find_required_opp()
authorViresh Kumar <viresh.kumar@linaro.org>
Wed, 29 Nov 2017 09:48:36 +0000 (15:18 +0530)
committerViresh Kumar <viresh.kumar@linaro.org>
Wed, 9 May 2018 04:45:19 +0000 (10:15 +0530)
commita88bd2a51e901ed8081841d647157de8153df813
treed5d01ef8c2d292f64c1cd234c72ff54da8600d74
parentfa9b274f8aeffb97787b055b8cfbf9062e158551
PM / OPP: Implement of_dev_pm_opp_find_required_opp()

A device's DT node or its OPP nodes can contain a phandle to other
device's OPP node, in the "required-opps" property.

This patch implements a routine to find that required OPP from the node
that contains the "required-opps" property.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Reviewed-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/opp/core.c
drivers/opp/of.c
drivers/opp/opp.h
include/linux/pm_opp.h