]> www.infradead.org Git - users/jedix/linux-maple.git/commit
Revert "ACPI: battery: negate current when discharging"
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 3 Jul 2025 10:54:55 +0000 (12:54 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 3 Jul 2025 11:00:11 +0000 (13:00 +0200)
commitde1675de39aa945bad5937d1fde4df3682670639
tree60466bacdb49353aebca314c888feb1731788588
parent234f71555019d308c6bc6f98c78c5551cb8cd56a
Revert "ACPI: battery: negate current when discharging"

Revert commit 234f71555019 ("ACPI: battery: negate current when
discharging") breaks not one but several userspace implementations
of battery monitoring: Steam and MangoHud. Perhaps it breaks more,
but those are the two that have been tested.

Reported-by: Matthew Schwartz <matthew.schwartz@linux.dev>
Closes: https://lore.kernel.org/linux-acpi/87C1B2AF-D430-4568-B620-14B941A8ABA4@linux.dev/
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/battery.c