OPP: Pass OPP table to _of_add_opp_table_v{1|2}()
authorViresh Kumar <viresh.kumar@linaro.org>
Wed, 12 Sep 2018 05:51:17 +0000 (11:21 +0530)
committerViresh Kumar <viresh.kumar@linaro.org>
Mon, 1 Oct 2018 09:30:34 +0000 (15:00 +0530)
commit5ed4cecd75e90232a19afa502cf477925854561e
tree0ac30f7591abe1a79f7e9bb923a6cfe15a95b409
parent283d55e68d8a0f302057f57dcbd4d2e000c2ac85
OPP: Pass OPP table to _of_add_opp_table_v{1|2}()

Both _of_add_opp_table_v1() and _of_add_opp_table_v2() contain similar
code to get the OPP table and their parent routine also parses the DT to
find the OPP table's node pointer. This can be simplified by getting the
OPP table in advance and then passing it as argument to these routines.

Tested-by: Niklas Cassel <niklas.cassel@linaro.org>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
drivers/opp/of.c