]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
OPP: Return correct value in dev_pm_opp_get_level
authorAleks Todorov <aleksbgbg@google.com>
Fri, 23 Jan 2026 14:03:44 +0000 (14:03 +0000)
committerViresh Kumar <viresh.kumar@linaro.org>
Tue, 27 Jan 2026 05:28:50 +0000 (10:58 +0530)
commit0b7277e02dabba2a9921a7f4761ae6e627e7297a
tree34586d9ff0941d33614e1e2b7cb96a2bf0597c7b
parent549a1be5cebb7079789e5821d8ad53140e181367
OPP: Return correct value in dev_pm_opp_get_level

Commit 073d3d2ca7d4 ("OPP: Level zero is valid") modified the
documentation for this function to indicate that errors should return a
non-zero value to avoid colliding with the OPP level zero, however
forgot to actually update the return.

No in-tree kernel code depends on the error value being 0.

Fixes: 073d3d2ca7d4 ("OPP: Level zero is valid")
Signed-off-by: Aleks Todorov <aleksbgbg@google.com>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
drivers/opp/core.c