OSDN Git Service

platform/x86: thinkpad_acpi: support inhibit-charge
authorThomas Weißschuh <linux@weissschuh.net>
Tue, 23 Nov 2021 23:27:04 +0000 (00:27 +0100)
committerHans de Goede <hdegoede@redhat.com>
Tue, 21 Dec 2021 15:28:02 +0000 (16:28 +0100)
commit400cffd5f4eaf34939530b3a044e31655188b1f9
tree6f44911133b855f77617058e42f1bcd69e3ca953
parentb55d416d48f5907f66218ae3d878e3bfb69ae4e6
platform/x86: thinkpad_acpi: support inhibit-charge

This adds support for the inhibit-charge charge_behaviour through the
embedded controller of ThinkPads.

Co-developed-by: Thomas Koch <linrunner@gmx.net>
Signed-off-by: Thomas Koch <linrunner@gmx.net>
Co-developed-by: Nicolò Piazzalunga <nicolopiazzalunga@gmail.com>
Signed-off-by: Nicolò Piazzalunga <nicolopiazzalunga@gmail.com>
Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Acked-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Link: https://lore.kernel.org/r/20211123232704.25394-5-linux@weissschuh.net
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/x86/thinkpad_acpi.c