OPP: Introduce dev_pm_opp_get_freq_indexed() API
authorManivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Thu, 20 Jul 2023 05:40:53 +0000 (11:10 +0530)
committerViresh Kumar <viresh.kumar@linaro.org>
Mon, 24 Jul 2023 07:52:39 +0000 (13:22 +0530)
commit5f756d03e2c7db63c1df7148d7b1739f29ff1532
tree3505828ed917814c82989185a306006135f6680f
parent142e17c1c2b48e3fb4f024e62ab6dee18f268694
OPP: Introduce dev_pm_opp_get_freq_indexed() API

In the case of devices with multiple clocks, drivers need to specify the
frequency index for the OPP framework to get the specific frequency within
the required OPP. So let's introduce the dev_pm_opp_get_freq_indexed() API
accepting the frequency index as an argument.

Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
[ Viresh: Fixed potential access to NULL opp pointer ]
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
drivers/opp/core.c
include/linux/pm_opp.h