Skip to contentSkip to conversation

drm/amd/pm: Clean up errors in vega20_hwmgr.h

PATCH Applied Ran Sun 3 participants 3 messages Aug 1, 2023 – Aug 7, 2023

Subsystems (3)
lore
Share & tools
lore

Ran Sun

author
#0 lore raw

PATCH 1/1 drm/amd/pm: Clean up errors in vega20_hwmgr.h

Fix the following errors reported by checkpatch:

ERROR: open brace '{' following enum go on the same line

---
 drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega20_hwmgr.h | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega20_hwmgr.h +2 -4
index 075c0094da9c..1ba9b5fe2a5d 100644
@@ -385,8 +385,7 @@ struct vega20_odn_data {
 	struct vega20_odn_temp_table	odn_temp_table;
 };
 
-enum OD8_FEATURE_ID
-{
+enum OD8_FEATURE_ID {
 	OD8_GFXCLK_LIMITS               = 1 << 0,
 	OD8_GFXCLK_CURVE                = 1 << 1,
 	OD8_UCLK_MAX                    = 1 << 2,
@@ -399,8 +398,7 @@ enum OD8_FEATURE_ID
 	OD8_FAN_ZERO_RPM_CONTROL        = 1 << 9
 };
 
-enum OD8_SETTING_ID
-{
+enum OD8_SETTING_ID {
 	OD8_SETTING_GFXCLK_FMIN = 0,
 	OD8_SETTING_GFXCLK_FMAX,
 	OD8_SETTING_GFXCLK_FREQ1,
Signature · 1 line
2.17.1
Reviewed-by on v1 1/1
#1 lore raw

[AMD Official Use Only - General]

Quoted 46 lines

-----Original Message-----
From: amd-gfx <[email protected]> On Behalf Of Ran Sun
Sent: Tuesday, August 1, 2023 10:39 AM
To: Deucher, Alexander <[email protected]>; [email protected]; [email protected]
Cc: Ran Sun <[email protected]>; [email protected]; [email protected]; [email protected]
Subject: [PATCH] drm/amd/pm: Clean up errors in vega20_hwmgr.h

Fix the following errors reported by checkpatch:

ERROR: open brace '{' following enum go on the same line

---
 drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega20_hwmgr.h | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega20_hwmgr.h +2 -5
index 075c0094da9c..1ba9b5fe2a5d 100644
@@ -385,8 +385,7 @@ struct vega20_odn_data {
      struct vega20_odn_temp_table    odn_temp_table;
 };
 
-enum OD8_FEATURE_ID
-{
+enum OD8_FEATURE_ID {
      OD8_GFXCLK_LIMITS               = 1 << 0,
      OD8_GFXCLK_CURVE                = 1 << 1,
      OD8_UCLK_MAX                    = 1 << 2,
@@ -399,8 +398,7 @@ enum OD8_FEATURE_ID
      OD8_FAN_ZERO_RPM_CONTROL        = 1 << 9
 };
 
-enum OD8_SETTING_ID
-{
+enum OD8_SETTING_ID {
      OD8_SETTING_GFXCLK_FMIN = 0,
      OD8_SETTING_GFXCLK_FMAX,
      OD8_SETTING_GFXCLK_FREQ1,
--

2.17.1

Applied
#2 lore raw

Applied. Thanks!

Quoted 52 lines · Evan

[AMD Official Use Only - General]

Quoted 46 lines

-----Original Message-----
From: amd-gfx <[email protected]> On Behalf Of Ran Sun
Sent: Tuesday, August 1, 2023 10:39 AM
To: Deucher, Alexander <[email protected]>; [email protected]; [email protected]
Cc: Ran Sun <[email protected]>; [email protected]; [email protected]; [email protected]
Subject: [PATCH] drm/amd/pm: Clean up errors in vega20_hwmgr.h

Fix the following errors reported by checkpatch:

ERROR: open brace '{' following enum go on the same line

---
 drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega20_hwmgr.h | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega20_hwmgr.h +2 -5
index 075c0094da9c..1ba9b5fe2a5d 100644
@@ -385,8 +385,7 @@ struct vega20_odn_data {
      struct vega20_odn_temp_table    odn_temp_table;
 };
 
-enum OD8_FEATURE_ID
-{
+enum OD8_FEATURE_ID {
      OD8_GFXCLK_LIMITS               = 1 << 0,
      OD8_GFXCLK_CURVE                = 1 << 1,
      OD8_UCLK_MAX                    = 1 << 2,
@@ -399,8 +398,7 @@ enum OD8_FEATURE_ID
      OD8_FAN_ZERO_RPM_CONTROL        = 1 << 9
 };
 
-enum OD8_SETTING_ID
-{
+enum OD8_SETTING_ID {
      OD8_SETTING_GFXCLK_FMIN = 0,
      OD8_SETTING_GFXCLK_FMAX,
      OD8_SETTING_GFXCLK_FREQ1,
--

2.17.1