platform/x86: thinkpad_acpi: Fix multi-battery bug
authorThomas Weißschuh <linux@weissschuh.net>
Wed, 1 Aug 2018 22:24:18 +0000 (00:24 +0200)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 15 Aug 2018 09:55:32 +0000 (12:55 +0300)
commitd22296d9c38fd29a96bb5079fb8d17cee278f40e
treef20feeb17d4fa58bc59fb28a0795bb568b9f6c03
parent6640ee6289b9974334e36d8283fc07f37f3b235d
platform/x86: thinkpad_acpi: Fix multi-battery bug

The struct containing the supported operations for all batteries is
being zeroed on each battery probe.  This prevents all other batteries
except the lastly probed one from being configured.

Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
drivers/platform/x86/thinkpad_acpi.c