platform/x86: samsung-laptop: Expose charge_types
authorJelle van der Waa <jvanderwaa@redhat.com>
Wed, 2 Jul 2025 18:28:43 +0000 (20:28 +0200)
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Tue, 22 Jul 2025 14:38:39 +0000 (17:38 +0300)
commitde2884c6cdd3d133704ce37393590dd1c761500c
tree5c655f22d9c9a25ea696ae40fcb664c360cbbcbd
parent4ff3aeb664f7dfe824ba91ffb0b203397a8d431e
platform/x86: samsung-laptop: Expose charge_types

Support the newly introduced charge_types sysfs attribute as a
replacement for the custom `battery_life_extender` attribute. Setting
charge_types to `Long Life` enables battery life extending mode.

This change is similar to the recent Ideapad patch adding support for
charge_types.

Signed-off-by: Jelle van der Waa <jvanderwaa@redhat.com>
Link: https://lore.kernel.org/r/20250702182844.107706-1-jvanderwaa@redhat.com
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Documentation/ABI/obsolete/sysfs-driver-samsung-laptop [new file with mode: 0644]
Documentation/ABI/testing/sysfs-driver-samsung-laptop
drivers/platform/x86/Kconfig
drivers/platform/x86/samsung-laptop.c