]> www.infradead.org Git - users/jedix/linux-maple.git/commit
OPP: Add dev_pm_opp_set_level()
authorPraveen Talari <quic_ptalari@quicinc.com>
Fri, 2 May 2025 05:28:22 +0000 (10:58 +0530)
committerViresh Kumar <viresh.kumar@linaro.org>
Fri, 2 May 2025 05:33:18 +0000 (11:03 +0530)
commitee3de3cf7035aaf289085111fd0cfaddc93f0409
tree285ad5cb75946b36d94d68d16abf239f84a7331a
parentff9c512041f2b405536640374ae3a3fe10efaf8b
OPP: Add dev_pm_opp_set_level()

To configure a device to a specific performance level, consumer drivers
currently need to determine the OPP based on the exact level and then
set it, resulting in code duplication across drivers.

The new helper API, dev_pm_opp_set_level(), addresses this issue by
providing a streamlined method for consumer drivers to find and set the
OPP based on the desired performance level, thereby eliminating
redundancy.

Signed-off-by: Praveen Talari <quic_ptalari@quicinc.com>
[ Viresh: Lot of fixes in the code, and rebased over latest changes.
           Fixed commit log too. ]
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
include/linux/pm_opp.h