]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
platform/x86: asus-armoury: fix only DC tunables being available
authorDenis Benato <denis.benato@linux.dev>
Sun, 23 Nov 2025 15:05:35 +0000 (16:05 +0100)
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Mon, 24 Nov 2025 13:53:36 +0000 (15:53 +0200)
Module asus-armoury must use AC tunables to check availability
of power-related firmware attributes: fix missing attributes
by using AC attributes instead of DC.

Signed-off-by: Denis Benato <denis.benato@linux.dev>
Link: https://patch.msgid.link/20251123150535.267339-1-denis.benato@linux.dev
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
drivers/platform/x86/asus-armoury.c

index 5106e8a41e25e1f58c17f91c142953f07412b212..9c1a9ad42bc461f018b81248df5608935f93f8a1 100644 (file)
@@ -869,7 +869,8 @@ static bool has_valid_limit(const char *name, const struct power_limits *limits)
 
 static int asus_fw_attr_add(void)
 {
-       const struct rog_tunables *const ac_rog_tunables = asus_armoury.rog_tunables[ASUS_ROG_TUNABLE_DC];
+       const struct rog_tunables *const ac_rog_tunables =
+               asus_armoury.rog_tunables[ASUS_ROG_TUNABLE_AC];
        const struct power_limits *limits;
        bool should_create;
        const char *name;