OPP: Add dev_pm_opp_get_supplies()
authorViresh Kumar <viresh.kumar@linaro.org>
Tue, 31 May 2022 07:54:21 +0000 (13:24 +0530)
committerViresh Kumar <viresh.kumar@linaro.org>
Fri, 8 Jul 2022 05:57:49 +0000 (11:27 +0530)
commit69b1af178a3a534da2f20fa0c7356fcbbe8cce1f
treeeacea8f3e990c335ccb828414a8822b96beb10cd
parentc522ce8a08066b44539e0dd0998b8e3b277a759b
OPP: Add dev_pm_opp_get_supplies()

We already have an API for getting voltage information for a single
regulator, dev_pm_opp_get_voltage(), but there is nothing available for
multiple regulator case.

This patch adds a new API, dev_pm_opp_get_supplies(), to get all
information related to the supplies for an OPP.

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