OSDN Git Service

platform/x86: thinkpad_acpi: Proper model/release matching
authorJouke Witteveen <j.witteveen@gmail.com>
Wed, 11 Jul 2018 09:44:41 +0000 (11:44 +0200)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 18 Jul 2018 10:29:11 +0000 (13:29 +0300)
commit846a416b4630fc960c10500b4194ad504bc22d4b
tree7f71c7654e30d3cc09dbb7802341344d05c7ae97
parent309dca51c902d10267bbb120a8a2f3efc3491728
platform/x86: thinkpad_acpi: Proper model/release matching

Modern Thinkpads have three character model designators. Previously, they
would be accepted, but recorded incompletely. Revision matching extracted
the wrong bytes from the ID string. This made the use of quirks for modern
machines impossible.

Fixes: 1b0eb5bc2413
Signed-off-by: Jouke Witteveen <j.witteveen@gmail.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
drivers/platform/x86/thinkpad_acpi.c