thermal: remove get_mode() operation of drivers
authorAndrzej Pietrasiewicz <andrzej.p@collabora.com>
Mon, 29 Jun 2020 12:29:19 +0000 (14:29 +0200)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Mon, 29 Jun 2020 18:26:35 +0000 (20:26 +0200)
commit1ee14820fd8ee79c4fc191155f48c985f28040e2
tree8d42861cf3c807a4a103b918abd28723f90e1924
parent5a3506657f71d7ca124c040aff98639673c5dc97
thermal: remove get_mode() operation of drivers

get_mode() is now redundant, as the state is stored in struct
thermal_zone_device.

Consequently the "mode" attribute in sysfs can always be visible, because
it is always possible to get the mode from struct tzd.

Signed-off-by: Andrzej Pietrasiewicz <andrzej.p@collabora.com>
[for acerhdf]
Acked-by: Peter Kaestle <peter@piie.net>
Reviewed-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Reviewed-by: Amit Kucheria <amit.kucheria@linaro.org>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20200629122925.21729-6-andrzej.p@collabora.com
drivers/acpi/thermal.c
drivers/net/ethernet/mellanox/mlxsw/core_thermal.c
drivers/platform/x86/acerhdf.c
drivers/thermal/da9062-thermal.c
drivers/thermal/imx_thermal.c
drivers/thermal/intel/int340x_thermal/int3400_thermal.c
drivers/thermal/intel/intel_quark_dts_thermal.c
drivers/thermal/thermal_core.c
drivers/thermal/thermal_of.c
drivers/thermal/thermal_sysfs.c
include/linux/thermal.h