opp: Add dev_pm_opp_find_level_ceil()
authorDmitry Osipenko <digetx@gmail.com>
Mon, 18 Jan 2021 00:55:18 +0000 (03:55 +0300)
committerViresh Kumar <viresh.kumar@linaro.org>
Tue, 2 Feb 2021 04:57:01 +0000 (10:27 +0530)
commit8dd5cada393f6f4e825833a6ff05b1f51f36a791
tree7410be8cacbe7d580cc38cba8bb10bb151e212e7
parentd758eaf5f8cbdf2554e34269c75694f60c38745d
opp: Add dev_pm_opp_find_level_ceil()

Add a ceil version of the dev_pm_opp_find_level(). It's handy to have if
levels don't start from 0 in OPP table and zero usually means a minimal
level.

Tested-by: Peter Geis <pgwipeout@gmail.com>
Tested-by: Nicolas Chauvet <kwizart@gmail.com>
Tested-by: Matt Merhar <mattmerhar@protonmail.com>
Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
drivers/opp/core.c
include/linux/pm_opp.h