OPP: Populate required opp tables from "required-opps" property
authorViresh Kumar <viresh.kumar@linaro.org>
Thu, 7 Jun 2018 09:20:43 +0000 (14:50 +0530)
committerViresh Kumar <viresh.kumar@linaro.org>
Mon, 5 Nov 2018 02:10:42 +0000 (07:40 +0530)
commit5d6d106fa45501ea6494a8653adbf2bee4a6f803
treecbaea1ef9c2dc2bfb65bd8bb390f1922ca71a1db
parent7e535993fa4f671dbbd7fd95c93ce90181ddd9e1
OPP: Populate required opp tables from "required-opps" property

The current implementation works only for the case where a single
phandle is present in the "required-opps" property, while DT allows
multiple phandles to be present there.

This patch adds new infrastructure to parse all the phandles present in
"required-opps" property and save pointers of the required OPP's OPP
tables. These will be used by later commits.

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