]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
platform/x86: asus-wmi: rename ASUS_WMI_DEVID_PPT_FPPT
authorDenis Benato <denis.benato@linux.dev>
Sun, 2 Nov 2025 21:53:18 +0000 (22:53 +0100)
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Tue, 18 Nov 2025 08:52:21 +0000 (10:52 +0200)
Maintain power-related WMI macros naming consistency:
rename ASUS_WMI_DEVID_PPT_FPPT to ASUS_WMI_DEVID_PPT_PL3_FPPT.

Link: https://lore.kernel.org/all/cad7b458-5a7a-4975-94a1-d0c74f6f3de5@oracle.com/
Suggested-by: ALOK TIWARI <alok.a.tiwari@oracle.com>
Signed-off-by: Denis Benato <denis.benato@linux.dev>
Link: https://.../
Link: https://patch.msgid.link/20251102215319.3126879-9-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/platform/x86/asus-wmi.c
include/linux/platform_data/x86/asus-wmi.h

index 6de633d4a7489a6d3947d4f8ddbd296aa7f78635..64cfc0bf98dd43a45c8053fb7789e37901a29ac3 100644 (file)
@@ -1218,7 +1218,7 @@ static ssize_t ppt_fppt_store(struct device *dev,
        if (value < PPT_TOTAL_MIN || value > PPT_TOTAL_MAX)
                return -EINVAL;
 
-       err = asus_wmi_set_devstate(ASUS_WMI_DEVID_PPT_FPPT, value, &result);
+       err = asus_wmi_set_devstate(ASUS_WMI_DEVID_PPT_PL3_FPPT, value, &result);
        if (err) {
                pr_warn("Failed to set ppt_fppt: %d\n", err);
                return err;
@@ -4602,7 +4602,7 @@ static umode_t asus_sysfs_is_visible(struct kobject *kobj,
        else if (attr == &dev_attr_ppt_pl1_spl.attr)
                devid = ASUS_WMI_DEVID_PPT_PL1_SPL;
        else if (attr == &dev_attr_ppt_fppt.attr)
-               devid = ASUS_WMI_DEVID_PPT_FPPT;
+               devid = ASUS_WMI_DEVID_PPT_PL3_FPPT;
        else if (attr == &dev_attr_ppt_apu_sppt.attr)
                devid = ASUS_WMI_DEVID_PPT_APU_SPPT;
        else if (attr == &dev_attr_ppt_platform_sppt.attr)
index 3af075baf9f7472b629d806519833afa3779b7d3..e7c95e9d29dbfaacd54c490efb73bc7a329a5903 100644 (file)
 #define ASUS_WMI_DEVID_PPT_PL1_SPL             0x001200A3
 #define ASUS_WMI_DEVID_PPT_APU_SPPT            0x001200B0
 #define ASUS_WMI_DEVID_PPT_PLAT_SPPT   0x001200B1
-#define ASUS_WMI_DEVID_PPT_FPPT                        0x001200C1
+#define ASUS_WMI_DEVID_PPT_PL3_FPPT            0x001200C1
 #define ASUS_WMI_DEVID_NV_DYN_BOOST            0x001200C0
 #define ASUS_WMI_DEVID_NV_THERM_TARGET 0x001200C2