thermal/core: Make cooling device state change private
authorDaniel Lezcano <daniel.lezcano@linaro.org>
Mon, 18 Jan 2021 17:38:24 +0000 (18:38 +0100)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Tue, 19 Jan 2021 21:31:10 +0000 (22:31 +0100)
commit23ff8529ee207c634ce2e170c353938db7aa98a9
tree78216de32664757524428a271e68e009aef0a118
parent03671968d0bf2db598f7e3aa98f190b76c1bb4ff
thermal/core: Make cooling device state change private

The change of the cooling device state should be used by the governor
or at least by the core code, not by the drivers themselves.

Remove the API usage and move the function declaration to the internal
headers.

Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Acked-by: Guenter Roeck <linux@roeck-us.net>
Acked-by: Zhang Rui <rui.zhang@intel.com>
Link: https://lore.kernel.org/r/20210118173824.9970-1-daniel.lezcano@linaro.org
drivers/hwmon/pwm-fan.c
drivers/thermal/khadas_mcu_fan.c
drivers/thermal/thermal_core.h
include/linux/thermal.h