opp: Add dev_pm_opp_find_level_exact()
authorNiklas Cassel <niklas.cassel@linaro.org>
Thu, 25 Jul 2019 10:41:29 +0000 (12:41 +0200)
committerViresh Kumar <viresh.kumar@linaro.org>
Fri, 26 Jul 2019 07:54:59 +0000 (13:24 +0530)
commit71419d84c216cee8da3b19fb843b4242f112cde4
tree8826c9954f665303de987231a2498b14324e0d27
parent17a8f868ae3e85a173843b1ac65e744e8585bc5a
opp: Add dev_pm_opp_find_level_exact()

Since the performance states in the OPP table are unique, implement a
dev_pm_opp_find_level_exact() in order to be able to fetch a specific OPP.

Signed-off-by: Niklas Cassel <niklas.cassel@linaro.org>
[ Viresh: Updated commit log ]
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
drivers/opp/core.c
include/linux/pm_opp.h