Add support for multiple batteries to acpithinkpad setchargestart and
authorclaudio <claudio@openbsd.org>
Fri, 7 Jul 2023 07:37:59 +0000 (07:37 +0000)
committerclaudio <claudio@openbsd.org>
Fri, 7 Jul 2023 07:37:59 +0000 (07:37 +0000)
commit3e37c3917fb64de485d8029e0dc97361c537fde4
tree4ff232d5206a1c53af75c70339762aa21266106d
parentbb933e2f230376c8b238191c449a15fbc0f42703
Add support for multiple batteries to acpithinkpad setchargestart and
setchargestop. With this laptops like x270 or x240 properly set the
thresholds for both batteries.
Tested by kn@ and jmatthew@
OK kettenis@
sys/dev/acpi/acpi.c
sys/dev/acpi/acpithinkpad.c
sys/dev/acpi/acpivar.h