platform/x86: system76_acpi: Add battery charging thresholds
authorTim Crawford <tcrawford@system76.com>
Wed, 6 Oct 2021 20:22:01 +0000 (14:22 -0600)
committerHans de Goede <hdegoede@redhat.com>
Tue, 19 Oct 2021 14:31:09 +0000 (16:31 +0200)
commit76f7eba3e0a248af4cc4f302d95031fa2fb65fab
tree903a12b201bf9d7e05e714c8d71217e171e5f476
parent0de30fc684b3883be73602b7557661951319a9b9
platform/x86: system76_acpi: Add battery charging thresholds

System76 laptops running open source EC firmware support configuring
charging thresholds through ACPI methods. Expose this functionality
through the standard sysfs entries charge_control_{start,end}_threshold.

Signed-off-by: Tim Crawford <tcrawford@system76.com>
Link: https://lore.kernel.org/r/20211006202202.7479-4-tcrawford@system76.com
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/x86/system76_acpi.c