diff options
author | Lukasz Luba | 2022-03-21 09:57:25 +0000 |
---|---|---|
committer | Rafael J. Wysocki | 2022-04-13 16:26:17 +0200 |
commit | 75a3a99a5a9886af13be44e640cb415ebda80db2 (patch) | |
tree | c467d114250dd499eeb4f3bc9869d501bb2f30c0 /Documentation/power | |
parent | 91362463114eb63ead5f02c11d58c46064c339e7 (diff) |
PM: EM: Change the order of arguments in the .active_power() callback
The .active_power() callback passes the device pointer when it's called.
Aligned with a convetion present in other subsystems and pass the 'dev'
as a first argument. It looks more cleaner.
Adjust all affected drivers which implement that API callback.
Suggested-by: Ionela Voinescu <ionela.voinescu@arm.com>
Signed-off-by: Lukasz Luba <lukasz.luba@arm.com>
Reviewed-by: Ionela Voinescu <ionela.voinescu@arm.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'Documentation/power')
-rw-r--r-- | Documentation/power/energy-model.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Documentation/power/energy-model.rst b/Documentation/power/energy-model.rst index 49549aab41b4..fd29ed2506c0 100644 --- a/Documentation/power/energy-model.rst +++ b/Documentation/power/energy-model.rst @@ -181,8 +181,8 @@ EM framework:: -> drivers/cpufreq/foo_cpufreq.c - 01 static int est_power(unsigned long *mW, unsigned long *KHz, - 02 struct device *dev) + 01 static int est_power(struct device *dev, unsigned long *mW, + 02 unsigned long *KHz) 03 { 04 long freq, power; 05 |