]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ACPI: bus: Indicate support for battery charge limiting thru _OSC
authorArmin Wolf <W_Armin@gmx.de>
Thu, 20 Jun 2024 19:14:10 +0000 (21:14 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 1 Jul 2024 17:26:04 +0000 (19:26 +0200)
commitface1c543e89ebc657f7948b0541a76954cf9382
tree5fa33384a2fae5283f2fd6e2eaac186e3f507897
parent526294e1eb8e43bce5088806abeedeea31018641
ACPI: bus: Indicate support for battery charge limiting thru _OSC

The ACPI battery driver can handle the "charge limiting" state
of the battery, so the platform can advertise this state.

Indicate this by setting bit 19 ("Battery Charge Limiting Support")
when evaluating _OSC.

Tested on a Lenovo Ideapad S145-14IWL.

Signed-off-by: Armin Wolf <W_Armin@gmx.de>
Link: https://patch.msgid.link/20240620191410.3646-2-W_Armin@gmx.de
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/bus.c
include/linux/acpi.h