OPP: Rename and relocate of_genpd_opp_to_performance_state()
authorViresh Kumar <viresh.kumar@linaro.org>
Wed, 27 Jun 2018 10:59:50 +0000 (16:29 +0530)
committerViresh Kumar <viresh.kumar@linaro.org>
Mon, 5 Nov 2018 02:10:43 +0000 (07:40 +0530)
commit4c6a343e57fe241fa30ab31ac4969561272cc6b2
tree214b1413c1246e5c66d1c2c2df5aa6130d409847
parentca1b5d77b1c69df7d7b92860c61daa82c8bfde34
OPP: Rename and relocate of_genpd_opp_to_performance_state()

The OPP core already has the performance state values for each of the
genpd's OPPs and there is no need to call the genpd callback again to
get the performance state for the case where the end device doesn't have
an OPP table and has the "required-opps" property directly in its node.

This commit renames of_genpd_opp_to_performance_state() as
of_get_required_opp_performance_state() and moves it to the OPP core, as
it is all about OPP stuff now.

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