OPP: Add dev_pm_opp_set_config() and friends
authorViresh Kumar <viresh.kumar@linaro.org>
Wed, 25 May 2022 09:53:16 +0000 (15:23 +0530)
committerViresh Kumar <viresh.kumar@linaro.org>
Fri, 8 Jul 2022 05:57:32 +0000 (11:27 +0530)
commit11b9b663585c4f8b00846089ebbca4d1e3283e86
treed34dcb1302c71e863815cb7a4d0c6d928f1c5d25
parent87686cc845c3be7dea777f1dbf2de0767007cda8
OPP: Add dev_pm_opp_set_config() and friends

The OPP core already have few configuration specific APIs and it is
getting complex or messy for both the OPP core and its users.

Lets introduce a new set of API which will be used for all kind of
different configurations, and shall eventually be used by all the
existing ones.

The new API, returns a unique token instead of a pointer to the OPP
table, which allows the OPP core to drop the resources selectively later
on.

Tested-by: Dmitry Osipenko <dmitry.osipenko@collabora.com>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
drivers/opp/core.c
drivers/opp/opp.h
include/linux/pm_opp.h