From: Denis Benato Date: Sun, 23 Nov 2025 15:05:35 +0000 (+0100) Subject: platform/x86: asus-armoury: fix only DC tunables being available X-Git-Tag: v6.19-rc1~42^2~22 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f72c8ab57927653199da6e35405eadffb40d7e54;p=thirdparty%2Fkernel%2Flinux.git platform/x86: asus-armoury: fix only DC tunables being available 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 Link: https://patch.msgid.link/20251123150535.267339-1-denis.benato@linux.dev Reviewed-by: Ilpo Järvinen Signed-off-by: Ilpo Järvinen --- diff --git a/drivers/platform/x86/asus-armoury.c b/drivers/platform/x86/asus-armoury.c index 5106e8a41e25e..9c1a9ad42bc46 100644 --- a/drivers/platform/x86/asus-armoury.c +++ b/drivers/platform/x86/asus-armoury.c @@ -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;