]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
platform/x86: uniwill-laptop: Enable battery charge modes on supported devices
authorWerner Sembach <wse@tuxedocomputers.com>
Tue, 12 May 2026 23:21:45 +0000 (01:21 +0200)
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Thu, 28 May 2026 10:23:35 +0000 (13:23 +0300)
Enable battery charge modes on supported TUXEDO devices by adding the
feature bit to the respective device descriptors.

Signed-off-by: Werner Sembach <wse@tuxedocomputers.com>
Link: https://patch.msgid.link/20260512232145.329260-9-W_Armin@gmx.de
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
drivers/platform/x86/uniwill/uniwill-acpi.c

index 53a05a05c5941e1e218554dd4d1408383242bdbb..ab063ead45b90375585b9eaf1c0c3bc26d927f6b 100644 (file)
@@ -2168,6 +2168,7 @@ static struct uniwill_device_descriptor lapkc71f_descriptor __initdata = {
 static struct uniwill_device_descriptor tux_featureset_1_descriptor __initdata = {
        .features = UNIWILL_FEATURE_FN_LOCK |
                    UNIWILL_FEATURE_SUPER_KEY |
+                   UNIWILL_FEATURE_BATTERY_CHARGE_MODES |
                    UNIWILL_FEATURE_CPU_TEMP |
                    UNIWILL_FEATURE_PRIMARY_FAN |
                    UNIWILL_FEATURE_SECONDARY_FAN |
@@ -2177,6 +2178,7 @@ static struct uniwill_device_descriptor tux_featureset_1_descriptor __initdata =
 static struct uniwill_device_descriptor tux_featureset_1_nvidia_descriptor __initdata = {
        .features = UNIWILL_FEATURE_FN_LOCK |
                    UNIWILL_FEATURE_SUPER_KEY |
+                   UNIWILL_FEATURE_BATTERY_CHARGE_MODES |
                    UNIWILL_FEATURE_CPU_TEMP |
                    UNIWILL_FEATURE_GPU_TEMP |
                    UNIWILL_FEATURE_PRIMARY_FAN |
@@ -2187,6 +2189,7 @@ static struct uniwill_device_descriptor tux_featureset_1_nvidia_descriptor __ini
 static struct uniwill_device_descriptor tux_featureset_2_nvidia_descriptor __initdata = {
        .features = UNIWILL_FEATURE_FN_LOCK |
                    UNIWILL_FEATURE_SUPER_KEY |
+                   UNIWILL_FEATURE_BATTERY_CHARGE_MODES |
                    UNIWILL_FEATURE_CPU_TEMP |
                    UNIWILL_FEATURE_GPU_TEMP |
                    UNIWILL_FEATURE_PRIMARY_FAN |
@@ -2198,6 +2201,7 @@ static struct uniwill_device_descriptor tux_featureset_2_nvidia_descriptor __ini
 static struct uniwill_device_descriptor tux_featureset_3_descriptor __initdata = {
        .features = UNIWILL_FEATURE_FN_LOCK |
                    UNIWILL_FEATURE_SUPER_KEY |
+                   UNIWILL_FEATURE_BATTERY_CHARGE_MODES |
                    UNIWILL_FEATURE_CPU_TEMP |
                    UNIWILL_FEATURE_PRIMARY_FAN |
                    UNIWILL_FEATURE_SECONDARY_FAN,
@@ -2206,6 +2210,7 @@ static struct uniwill_device_descriptor tux_featureset_3_descriptor __initdata =
 static struct uniwill_device_descriptor tux_featureset_3_nvidia_descriptor __initdata = {
        .features = UNIWILL_FEATURE_FN_LOCK |
                    UNIWILL_FEATURE_SUPER_KEY |
+                   UNIWILL_FEATURE_BATTERY_CHARGE_MODES |
                    UNIWILL_FEATURE_CPU_TEMP |
                    UNIWILL_FEATURE_GPU_TEMP |
                    UNIWILL_FEATURE_PRIMARY_FAN |
@@ -2231,6 +2236,7 @@ static int phxtxx1_probe(struct uniwill_data *data)
 static struct uniwill_device_descriptor phxtxx1_descriptor __initdata = {
        .features = UNIWILL_FEATURE_FN_LOCK |
                    UNIWILL_FEATURE_SUPER_KEY |
+                   UNIWILL_FEATURE_BATTERY_CHARGE_MODES |
                    UNIWILL_FEATURE_CPU_TEMP |
                    UNIWILL_FEATURE_PRIMARY_FAN |
                    UNIWILL_FEATURE_USB_C_POWER_PRIORITY,
@@ -2256,6 +2262,7 @@ static int phxarx1_phxaqf1_probe(struct uniwill_data *data)
 static struct uniwill_device_descriptor phxarx1_phxaqf1_descriptor __initdata = {
        .features = UNIWILL_FEATURE_FN_LOCK |
                    UNIWILL_FEATURE_SUPER_KEY |
+                   UNIWILL_FEATURE_BATTERY_CHARGE_MODES |
                    UNIWILL_FEATURE_CPU_TEMP |
                    UNIWILL_FEATURE_PRIMARY_FAN |
                    UNIWILL_FEATURE_SECONDARY_FAN |