OSDN Git Service

platform/x86: thinkpad_acpi: Support battery quirk
authorJouke Witteveen <j.witteveen@gmail.com>
Wed, 11 Jul 2018 09:45:36 +0000 (11:45 +0200)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 18 Jul 2018 10:29:12 +0000 (13:29 +0300)
commit1a32ebb26ba9adc9a3fe59079b79a82f6bbec34e
tree3878e8875f182b88eacd7410cedc0a8c7e633568
parent846a416b4630fc960c10500b4194ad504bc22d4b
platform/x86: thinkpad_acpi: Support battery quirk

Some Thinkpads have a single battery, but expose it as BAT1. Use the quirks
engine to force these machines into always addressing the primary battery.
Without this, the battery name would resolve to the non-existent secondary
battery and ACPI calls would fail.

Signed-off-by: Jouke Witteveen <j.witteveen@gmail.com>
Acked-by: Henrique de Moraes Holschuh <hmh@hmh.eng.br>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
drivers/platform/x86/thinkpad_acpi.c