OPP: Introduce an OF helper function to inform if required-opps is used
authorUlf Hansson <ulf.hansson@linaro.org>
Wed, 19 Jun 2024 14:08:46 +0000 (16:08 +0200)
committerViresh Kumar <viresh.kumar@linaro.org>
Wed, 26 Jun 2024 05:47:20 +0000 (11:17 +0530)
commite3943f00afdb71684c4f209f9d3a90d6b79771fc
tree5eb2855f5168cf1d5f13736e9e3a1038be0d1945
parent0d865221c8b13d8537fc7a1baa02061c428ad039
OPP: Introduce an OF helper function to inform if required-opps is used

As being shown from a subsequent change to genpd, it's useful to understand
if a device's OF node has an OPP-table described and whether it contains
OPP nodes that makes use of the required-opps DT property.

For this reason, let's introduce an OPP OF helper function called
dev_pm_opp_of_has_required_opp().

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