thermal/int340x_thermal: fix mode setting
authorMatthew Garrett <matthewgarrett@google.com>
Wed, 10 Oct 2018 08:30:07 +0000 (01:30 -0700)
committerZhang Rui <rui.zhang@intel.com>
Mon, 18 Mar 2019 14:13:21 +0000 (22:13 +0800)
commit396ee4d0cd52c13b3f6421b8d324d65da5e7e409
tree5aa6e98339aeef05ee03dae32bfc37a8f426e278
parent16fc8eca1975358111dbd7ce65e4ce42d1a848fb
thermal/int340x_thermal: fix mode setting

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>
drivers/thermal/intel/int340x_thermal/int3400_thermal.c