diff options
author | Ulf Hansson <ulf.hansson@linaro.org> | 2023-09-25 16:17:10 +0300 |
---|---|---|
committer | Viresh Kumar <viresh.kumar@linaro.org> | 2023-10-06 10:07:34 +0300 |
commit | 3166383da081461244918aeed7ad028ef11b17cc (patch) | |
tree | 5707714a946a7414e92e5de6ce32a518def682b7 /include/linux/pm_opp.h | |
parent | 248a38d5cc3f3505e6cfbbc0514435c9f1ba00af (diff) | |
download | linux-3166383da081461244918aeed7ad028ef11b17cc.tar.xz |
OPP: Extend dev_pm_opp_data with a level
Let's extend the dev_pm_opp_data with a level variable, to allow users to
specify a corresponding level (performance state) for a dynamically added
OPP.
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Diffstat (limited to 'include/linux/pm_opp.h')
-rw-r--r-- | include/linux/pm_opp.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/pm_opp.h b/include/linux/pm_opp.h index a8ee93ba41d8..9ad168f4cbf1 100644 --- a/include/linux/pm_opp.h +++ b/include/linux/pm_opp.h @@ -94,10 +94,12 @@ struct dev_pm_opp_config { /** * struct dev_pm_opp_data - The data to use to initialize an OPP. + * @level: The performance level for the OPP. * @freq: The clock rate in Hz for the OPP. * @u_volt: The voltage in uV for the OPP. */ struct dev_pm_opp_data { + unsigned int level; unsigned long freq; unsigned long u_volt; }; |