Skip to contentSkip to conversation

drm/amd/pm: fix hwmon node of power1_label create issue

PATCH Superseded Yang Wang 2 participants 2 messages Feb 8, 2022

Subsystems (3)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Yang Wang

author
#0 lore raw

PATCH 1/1 drm/amd/pm: fix hwmon node of power1_label create issue

fix typo issue about "power1_label",
it will cause hwmon node of power1_label is not created.

Fixes ae07970a06 ("drm/amd/pm: add support for hwmon control of slow and fast PPT limit on vangogh")
---
 drivers/gpu/drm/amd/pm/amdgpu_pm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/pm/amdgpu_pm.c +1 -1
index d68e7132da2c..d6c01c59f32e 100644
@@ -3288,7 +3288,7 @@ static umode_t hwmon_attributes_visible(struct kobject *kobj,
 		 attr == &sensor_dev_attr_power2_cap.dev_attr.attr ||
 		 attr == &sensor_dev_attr_power2_cap_default.dev_attr.attr ||
 		 attr == &sensor_dev_attr_power2_label.dev_attr.attr ||
-		 attr == &sensor_dev_attr_power1_label.dev_attr.attr))
+		 attr == &sensor_dev_attr_power2_label.dev_attr.attr))
 		return 0;
 
 	return effective_mode;
Signature · 1 line
2.25.1
maintainer Reviewed-by on v1 1/1
#1 lore raw

-----Original Message-----
From: Wang, Yang(Kevin) <[email protected]>
Sent: Tuesday, February 8, 2022 2:35 PM
To: [email protected]
Cc: Feng, Kenneth <[email protected]>; Lazar, Lijo <[email protected]>; Hou, Xiaomeng (Matthew) <[email protected]>; Wang, Yang(Kevin) <[email protected]>
Subject: [PATCH] drm/amd/pm: fix hwmon node of power1_label create issue

fix typo issue about "power1_label",
it will cause hwmon node of power1_label is not created.

Fixes ae07970a06 ("drm/amd/pm: add support for hwmon control of slow and fast PPT limit on vangogh")
---
 drivers/gpu/drm/amd/pm/amdgpu_pm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/pm/amdgpu_pm.c +1 -1
index d68e7132da2c..d6c01c59f32e 100644
@@ -3288,7 +3288,7 @@ static umode_t hwmon_attributes_visible(struct kobject *kobj,
 		 attr == &sensor_dev_attr_power2_cap.dev_attr.attr ||
 		 attr == &sensor_dev_attr_power2_cap_default.dev_attr.attr ||
 		 attr == &sensor_dev_attr_power2_label.dev_attr.attr ||
-		 attr == &sensor_dev_attr_power1_label.dev_attr.attr))
+		 attr == &sensor_dev_attr_power2_label.dev_attr.attr))
 		return 0;
 
 	return effective_mode;
Signature · 1 line
2.25.1