]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf88521c78c4c357e93d1c6d5ff0988a4f5d432cc
treecbaea1ef9c2dc2bfb65bd8bb390f1922ca71a1db
parent8abd03fd59f12bcd11c300c066b4e4af5c3e55c7
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