[PATCH] fix fan-quirk macro for Lenovo P50

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Commit 846a416b4630fc960c10500b4194ad504bc22d4b changed the
quirk-matching for modern thinkpads to use three characters instead of
two. Unfortunately that commit did break the fan-quirk matching for the
P50. With commit 599eefffcf6b9cff3e8cc2d96fd8eebfadab339c there were
some cleanups in the quirk-macros, but still did not fix the wrong
matching for the P50.

Note: I guess the quirk-list needs to be expanded for the P70 and
      newer models.
---
 drivers/platform/x86/thinkpad_acpi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/platform/x86/thinkpad_acpi.c b/drivers/platform/x86/thinkpad_acpi.c
index 726341f2b638..575a1ea161f0 100644
--- a/drivers/platform/x86/thinkpad_acpi.c
+++ b/drivers/platform/x86/thinkpad_acpi.c
@@ -8721,7 +8721,7 @@ static const struct tpacpi_quirk fan_quirk_table[] __initconst = {
 	TPACPI_QEC_IBM('7', '6', TPACPI_FAN_Q1),
 	TPACPI_QEC_IBM('7', '0', TPACPI_FAN_Q1),
 	TPACPI_QEC_LNV('7', 'M', TPACPI_FAN_2FAN),
-	TPACPI_Q_LNV('N', '1', TPACPI_FAN_2FAN),
+	TPACPI_Q_LNV3('N', '1', 'E', TPACPI_FAN_2FAN),
 };
 
 static int __init fan_init(struct ibm_init_struct *iibm)
-- 
2.20.1




[Index of Archives]     [Linux Kernel Development]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux