PM / devfreq: Switch to dev_pm_opp_find_freq_{ceil/floor}_indexed() APIs
authorManivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Tue, 3 Oct 2023 11:12:28 +0000 (16:42 +0530)
committerChanwoo Choi <cw00.choi@samsung.com>
Sun, 8 Oct 2023 22:28:50 +0000 (07:28 +0900)
commit8b3bd6ffbc6475a7dc92c6d6021d49b555301c01
tree16fa443284e850e06dbaa1c90e2247c3b102ae8a
parentd2805601988fb0b41247c95dcb4b8b8455921978
PM / devfreq: Switch to dev_pm_opp_find_freq_{ceil/floor}_indexed() APIs

Some devfreq consumers like UFS driver need to work with multiple clocks
through the OPP framework. For this reason, OPP framework exposes the
_indexed() APIs for finding the floor/ceil of the supplied frequency of
the indexed clock. So let's use them in the devfreq driver.

Currently, the clock index of 0 is used which works fine for multiple as
well as single clock.

Link: https://lore.kernel.org/all/20231003111232.42663-3-manivannan.sadhasivam@linaro.org/
Acked-by: Chanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
drivers/devfreq/devfreq.c