thermal: Simplify or eliminate unnecessary set_mode() methods
Setting polling_delay is now done at thermal_core level (by not polling DISABLED devices), so no need to repeat this code. int340x: Checking for an impossible enum value is unnecessary. acpi/thermal: It only prints debug messages. 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-11-andrzej.p@collabora.com
This commit is contained in:

committed by
Daniel Lezcano

parent
b56bdff78e
commit
5d7bd8aa7c
@@ -397,8 +397,6 @@ static inline void acerhdf_revert_to_bios_mode(void)
|
||||
{
|
||||
acerhdf_change_fanstate(ACERHDF_FAN_AUTO);
|
||||
kernelmode = 0;
|
||||
if (thz_dev)
|
||||
thz_dev->polling_delay = 0;
|
||||
|
||||
pr_notice("kernel mode fan control OFF\n");
|
||||
}
|
||||
@@ -406,7 +404,6 @@ static inline void acerhdf_enable_kernelmode(void)
|
||||
{
|
||||
kernelmode = 1;
|
||||
|
||||
thz_dev->polling_delay = interval*1000;
|
||||
pr_notice("kernel mode fan control ON\n");
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user