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>
This commit is contained in:
Denis Benato 2025-11-23 16:05:35 +01:00 committed by Ilpo Järvinen
parent 2643187ccb
commit f72c8ab579
No known key found for this signature in database
GPG Key ID: 59AC4F6153E5CE31
1 changed files with 2 additions and 1 deletions

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