Skip to content

Commit d849a9f

Browse files
NeroReflexij-intel
authored andcommitted
platform/x86: asus-wmi: rename ASUS_WMI_DEVID_PPT_FPPT
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>
1 parent c683651 commit d849a9f

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

drivers/platform/x86/asus-wmi.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1218,7 +1218,7 @@ static ssize_t ppt_fppt_store(struct device *dev,
12181218
if (value < PPT_TOTAL_MIN || value > PPT_TOTAL_MAX)
12191219
return -EINVAL;
12201220

1221-
err = asus_wmi_set_devstate(ASUS_WMI_DEVID_PPT_FPPT, value, &result);
1221+
err = asus_wmi_set_devstate(ASUS_WMI_DEVID_PPT_PL3_FPPT, value, &result);
12221222
if (err) {
12231223
pr_warn("Failed to set ppt_fppt: %d\n", err);
12241224
return err;
@@ -4602,7 +4602,7 @@ static umode_t asus_sysfs_is_visible(struct kobject *kobj,
46024602
else if (attr == &dev_attr_ppt_pl1_spl.attr)
46034603
devid = ASUS_WMI_DEVID_PPT_PL1_SPL;
46044604
else if (attr == &dev_attr_ppt_fppt.attr)
4605-
devid = ASUS_WMI_DEVID_PPT_FPPT;
4605+
devid = ASUS_WMI_DEVID_PPT_PL3_FPPT;
46064606
else if (attr == &dev_attr_ppt_apu_sppt.attr)
46074607
devid = ASUS_WMI_DEVID_PPT_APU_SPPT;
46084608
else if (attr == &dev_attr_ppt_platform_sppt.attr)

include/linux/platform_data/x86/asus-wmi.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@
107107
#define ASUS_WMI_DEVID_PPT_PL1_SPL 0x001200A3
108108
#define ASUS_WMI_DEVID_PPT_APU_SPPT 0x001200B0
109109
#define ASUS_WMI_DEVID_PPT_PLAT_SPPT 0x001200B1
110-
#define ASUS_WMI_DEVID_PPT_FPPT 0x001200C1
110+
#define ASUS_WMI_DEVID_PPT_PL3_FPPT 0x001200C1
111111
#define ASUS_WMI_DEVID_NV_DYN_BOOST 0x001200C0
112112
#define ASUS_WMI_DEVID_NV_THERM_TARGET 0x001200C2
113113

0 commit comments

Comments
 (0)