]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4d32aed9c343505493b0243fb5a6bf36c1a71701
tree3878e8875f182b88eacd7410cedc0a8c7e633568
parent7b19877c03d8f09c6e4c1a06e258b15ae0d7b55e
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