PM: EM: Change the order of arguments in the .active_power() callback
authorLukasz Luba <lukasz.luba@arm.com>
Mon, 21 Mar 2022 09:57:25 +0000 (09:57 +0000)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 13 Apr 2022 14:26:17 +0000 (16:26 +0200)
commit75a3a99a5a9886af13be44e640cb415ebda80db2
treec467d114250dd499eeb4f3bc9869d501bb2f30c0
parent91362463114eb63ead5f02c11d58c46064c339e7
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>
Documentation/power/energy-model.rst
drivers/cpufreq/mediatek-cpufreq-hw.c
drivers/cpufreq/scmi-cpufreq.c
drivers/opp/of.c
include/linux/energy_model.h
kernel/power/energy_model.c