thermal/drivers/core: Use governor table to initialize
authorDaniel Lezcano <daniel.lezcano@linaro.org>
Wed, 12 Jun 2019 20:13:25 +0000 (22:13 +0200)
committerZhang Rui <rui.zhang@intel.com>
Thu, 27 Jun 2019 13:22:14 +0000 (21:22 +0800)
commit57c5b2ec905933da84fe77b2b54619567ac21297
tree15f05271697560290ac97107e03a4c17f7c4ac7f
parent980af75ede4f36107b98aa5c247359b87c6afc30
thermal/drivers/core: Use governor table to initialize

Now that the governor table is in place and the macro allows to browse the
table, declare the governor so the entry is added in the governor table
in the init section.

The [un]register_thermal_governors function does no longer need to use the
exported [un]register thermal governor's specific function which in turn
call the [un]register_thermal_governor. The governors are fully
self-encapsulated.

The cyclic dependency is no longer needed, remove it.

Reviewed-by: Amit Kucheria <amit.kucheria@linaro.org>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
drivers/thermal/fair_share.c
drivers/thermal/gov_bang_bang.c
drivers/thermal/power_allocator.c
drivers/thermal/step_wise.c
drivers/thermal/thermal_core.c
drivers/thermal/thermal_core.h
drivers/thermal/user_space.c