thermal/int340x_thermal: fix mode setting
authorMatthew Garrett <matthewgarrett@google.com>
Wed, 10 Oct 2018 08:30:07 +0000 (01:30 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 20 Apr 2019 07:15:56 +0000 (09:15 +0200)
commit193dd213bebd6bcd74bf6583e28fb91f7bfcc255
tree38c40bf2028883222eacbff124df9f3f11977e20
parent10313672b3f0b9a3c5e1fbf2140d1b8047579dfc
thermal/int340x_thermal: fix mode setting

[ Upstream commit 396ee4d0cd52c13b3f6421b8d324d65da5e7e409 ]

int3400 only pushes the UUID into the firmware when the mode is flipped
to "enable". The current code only exposes the mode flag if the firmware
supports the PASSIVE_1 UUID, which not all machines do. Remove the
restriction.

Signed-off-by: Matthew Garrett <mjg59@google.com>
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/thermal/int340x_thermal/int3400_thermal.c