mirror of
https://github.com/torvalds/linux.git
synced 2026-11-07 06:17:02 +01:00
platform/x86: asus-wmi: rename TUF RGB state DEVID to _CMD
The pre-existing TUF RGB state DEVID (0x00100057) is a write-only command used with the DEVS method. Rename it to make clear it is a command rather than a readable state, avoiding confusion with the upcoming readback support. Suggested-by: Denis Benato <denis.benato@linux.dev> Signed-off-by: Bartu Alev <bartualev@gmail.com> Link: https://patch.msgid.link/20261010101601.888709-2-bartualev@gmail.com 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:
parent
61be8edd58
commit
39b6fe1f4b
|
|
@ -1151,7 +1151,7 @@ static ssize_t kbd_rgb_state_store(struct device *dev,
|
|||
|
||||
/* 0xbd is the required default arg0 for the method. Nothing happens otherwise */
|
||||
err = asus_wmi_evaluate_method3(ASUS_WMI_METHODID_DEVS,
|
||||
ASUS_WMI_DEVID_TUF_RGB_STATE, 0xbd | cmd << 8 | (flags << 16), 0, NULL);
|
||||
ASUS_WMI_DEVID_TUF_RGB_CMD, 0xbd | cmd << 8 | (flags << 16), 0, NULL);
|
||||
if (err)
|
||||
return err;
|
||||
|
||||
|
|
@ -5196,7 +5196,7 @@ static int asus_wmi_add(struct platform_device *pdev)
|
|||
|
||||
asus->egpu_enable_available = asus_wmi_dev_is_present(asus, ASUS_WMI_DEVID_EGPU);
|
||||
asus->dgpu_disable_available = asus_wmi_dev_is_present(asus, ASUS_WMI_DEVID_DGPU);
|
||||
asus->kbd_rgb_state_available = asus_wmi_dev_is_present(asus, ASUS_WMI_DEVID_TUF_RGB_STATE);
|
||||
asus->kbd_rgb_state_available = asus_wmi_dev_is_present(asus, ASUS_WMI_DEVID_TUF_RGB_CMD);
|
||||
|
||||
if (asus_wmi_dev_is_present(asus, ASUS_WMI_DEVID_MINI_LED_MODE))
|
||||
asus->mini_led_dev_id = ASUS_WMI_DEVID_MINI_LED_MODE;
|
||||
|
|
|
|||
|
|
@ -164,7 +164,7 @@
|
|||
#define ASUS_WMI_DEVID_TUF_RGB_MODE2 0x0010005A
|
||||
|
||||
/* TUF laptop RGB power/state */
|
||||
#define ASUS_WMI_DEVID_TUF_RGB_STATE 0x00100057
|
||||
#define ASUS_WMI_DEVID_TUF_RGB_CMD 0x00100057
|
||||
|
||||
/* Bootup sound control */
|
||||
#define ASUS_WMI_DEVID_BOOT_SOUND 0x00130022
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user