Skip to contentSkip to conversation

drm/amd/pm: add missing spaces before '('

PATCH Applied [email protected] 2 participants 2 messages Jul 24, 2023 1 message not in the archive

Subsystems (3)
lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

PATCH 1/1 drm/amd/pm: add missing spaces before '('

ERROR: space required before the open parenthesis '('

---
 drivers/gpu/drm/amd/pm/swsmu/smu12/renoir_ppt.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/gpu/drm/amd/pm/swsmu/smu12/renoir_ppt.c +3 -3
index 8a8ba25c9ad7..a7569354229d 100644
@@ -262,15 +262,15 @@ static int renoir_get_profiling_clk_mask(struct smu_context *smu,
 			/* mclk levels are in reverse order */
 			*mclk_mask = NUM_MEMCLK_DPM_LEVELS - 1;
 	} else if (level == AMD_DPM_FORCED_LEVEL_PROFILE_PEAK) {
-		if(sclk_mask)
+		if (sclk_mask)
 			/* The sclk as gfxclk and has three level about max/min/current */
 			*sclk_mask = 3 - 1;
 
-		if(mclk_mask)
+		if (mclk_mask)
 			/* mclk levels are in reverse order */
 			*mclk_mask = 0;
 
-		if(soc_mask)
+		if (soc_mask)
 			*soc_mask = NUM_SOCCLK_DPM_LEVELS - 1;
 	}
Applied
#2 lore raw

Applied. Thanks!

Quoted 32 lines · On Mon, Jul 24, 2023 at 3:02 AM <[email protected]> wrote:

ERROR: space required before the open parenthesis '('

---
  drivers/gpu/drm/amd/pm/swsmu/smu12/renoir_ppt.c | 6 +++---
  1 file changed, 3 insertions(+), 3 deletions(-)
drivers/gpu/drm/amd/pm/swsmu/smu12/renoir_ppt.c +3 -3
index 8a8ba25c9ad7..a7569354229d 100644
@@ -262,15 +262,15 @@ static int renoir_get_profiling_clk_mask(struct
 smu_context *smu,
                        /* mclk levels are in reverse order */
                        *mclk_mask = NUM_MEMCLK_DPM_LEVELS - 1;
        } else if (level == AMD_DPM_FORCED_LEVEL_PROFILE_PEAK) {
-               if(sclk_mask)
+               if (sclk_mask)
                        /* The sclk as gfxclk and has three level about max/min/current */
                        *sclk_mask = 3 - 1;
 
-               if(mclk_mask)
+               if (mclk_mask)
                        /* mclk levels are in reverse order */
                        *mclk_mask = 0;
 
-               if(soc_mask)
+               if (soc_mask)
                        *soc_mask = NUM_SOCCLK_DPM_LEVELS - 1;
        }