]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
platform/x86: asus-armoury: move existing tunings to asus-armoury module
authorLuke D. Jones <luke@ljones.dev>
Sun, 2 Nov 2025 21:53:12 +0000 (22:53 +0100)
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Wed, 12 Nov 2025 12:21:08 +0000 (14:21 +0200)
commitf99eb098090e4c8bfca4190b545e20450fee8250
tree6aa6c462882036a077b2918bc1f0be519a2a290b
parent22ea7b9d96e26147b7a3ea1be7aa106cc700907c
platform/x86: asus-armoury: move existing tunings to asus-armoury module

The fw_attributes_class provides a much cleaner interface to all of the
attributes introduced to asus-wmi. This patch moves all of these extra
attributes over to fw_attributes_class, and shifts the bulk of these
definitions to a new kernel module to reduce the clutter of asus-wmi
with the intention of deprecating the asus-wmi attributes in future.

The work applies only to WMI methods which don't have a clearly defined
place within the sysfs and as a result ended up lumped together in
/sys/devices/platform/asus-nb-wmi/ with no standard API.

Where possible the fw attrs now implement defaults, min, max, scalar,
choices, etc. As en example dgpu_disable becomes:

/sys/class/firmware-attributes/asus-armoury/attributes/dgpu_disable/
├── current_value
├── display_name
├── possible_values
└── type

as do other attributes.

Co-developed-by: Denis Benato <denis.benato@linux.dev>
Signed-off-by: Denis Benato <denis.benato@linux.dev>
Signed-off-by: Luke D. Jones <luke@ljones.dev>
Link: https://patch.msgid.link/20251102215319.3126879-3-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/hid/hid-asus.c
drivers/platform/x86/Kconfig
drivers/platform/x86/Makefile
drivers/platform/x86/asus-armoury.c [new file with mode: 0644]
drivers/platform/x86/asus-armoury.h [new file with mode: 0644]
drivers/platform/x86/asus-wmi.c
include/linux/platform_data/x86/asus-wmi-leds-ids.h [new file with mode: 0644]
include/linux/platform_data/x86/asus-wmi.h