Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <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>

authored by

Denis Benato and committed by
Ilpo Järvinen
f72c8ab5 2643187c

+2 -1
+2 -1
drivers/platform/x86/asus-armoury.c
··· 869 869 870 870 static int asus_fw_attr_add(void) 871 871 { 872 - const struct rog_tunables *const ac_rog_tunables = asus_armoury.rog_tunables[ASUS_ROG_TUNABLE_DC]; 872 + const struct rog_tunables *const ac_rog_tunables = 873 + asus_armoury.rog_tunables[ASUS_ROG_TUNABLE_AC]; 873 874 const struct power_limits *limits; 874 875 bool should_create; 875 876 const char *name;