Repository navigation
Commit d22296d
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>1 parent 6640ee6 commit d22296d
1 file changed
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9374 | 9374 | | |
9375 | 9375 | | |
9376 | 9376 | | |
9377 | | - | |
| 9377 | + | |
| 9378 | + | |
| 9379 | + | |
9378 | 9380 | | |
9379 | 9381 | | |
9380 | 9382 | | |
| |||
9620 | 9622 | | |
9621 | 9623 | | |
9622 | 9624 | | |
| 9625 | + | |
| 9626 | + | |
9623 | 9627 | | |
9624 | 9628 | | |
9625 | 9629 | | |
| |||
0 commit comments