platform/x86: thinkpad_acpi: Fix to correct wrong temp reporting on some ThinkPads
authorVishnu Sankar <vishnuocv@gmail.com>
Thu, 15 Feb 2024 13:41:02 +0000 (22:41 +0900)
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Tue, 20 Feb 2024 09:10:13 +0000 (11:10 +0200)
commit301c1904d638ea9f9c9da34952a63faa5ceed26b
tree755794e62229601a28224e570cbe0bc0a210641f
parentee8b738e7f7adf78700afd9ab9642fe015464885
platform/x86: thinkpad_acpi: Fix to correct wrong temp reporting on some ThinkPads

Added non-standard thermal register's support for some ThinkPads.

Some of the Thinkpads use a non-standard ECFW which has different
thermal register addresses. This is a fix to correct the wrong temperature
reporting on those systems.

Tested on Lenovo ThinkPad L13 Yoga Gen2.

Suggested-by: Mark Pearson <mpearson-lenovo@squebb.ca>
Signed-off-by: Vishnu Sankar <vishnuocv@gmail.com>
Link: https://lore.kernel.org/r/20240215134102.25118-2-vishnuocv@gmail.com
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
drivers/platform/x86/thinkpad_acpi.c