platform/x86: thinkpad_acpi: Correct dual fan probe
authorMark Pearson <markpearson@lenovo.com>
Mon, 2 May 2022 19:12:00 +0000 (15:12 -0400)
committerHans de Goede <hdegoede@redhat.com>
Fri, 6 May 2022 11:02:31 +0000 (13:02 +0200)
commitf964f0c9b1a5f915aec0ff70b9c3fe4a7bb8b01c
tree93c8cfab48a2a8825728256c063f679301ffa2dc
parentfbb404ab4e45c029bbc96764d202f15e629ae86b
platform/x86: thinkpad_acpi: Correct dual fan probe

There was an issue with the dual fan probe whereby the probe was
failing as it assuming that second_fan support was not available.

Corrected the logic so the probe works correctly. Cleaned up so
quirks only used if 2nd fan not detected.

Tested on X1 Carbon 10 (2 fans), X1 Carbon 9 (2 fans) and T490 (1 fan)

Signed-off-by: Mark Pearson <markpearson@lenovo.com>
Link: https://lore.kernel.org/r/20220502191200.63470-1-markpearson@lenovo.com
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/x86/thinkpad_acpi.c