dri-devel.lists.freedesktop.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] drm/amd/pm: add missing spaces before '('
       [not found] <20230724070049.8540-1-xujianghui@cdjrlc.com>
@ 2023-07-24  7:02 ` sunran001
  2023-07-24 21:46   ` Alex Deucher
  0 siblings, 1 reply; 2+ messages in thread
From: sunran001 @ 2023-07-24  7:02 UTC (permalink / raw)
  To: airlied, daniel, alexander.deucher; +Cc: dri-devel, amd-gfx, linux-kernel

ERROR: space required before the open parenthesis '('

Signed-off-by: Ran Sun <sunran001@208suo.com>
---
  drivers/gpu/drm/amd/pm/swsmu/smu12/renoir_ppt.c | 6 +++---
  1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/gpu/drm/amd/pm/swsmu/smu12/renoir_ppt.c 
b/drivers/gpu/drm/amd/pm/swsmu/smu12/renoir_ppt.c
index 8a8ba25c9ad7..a7569354229d 100644
--- a/drivers/gpu/drm/amd/pm/swsmu/smu12/renoir_ppt.c
+++ b/drivers/gpu/drm/amd/pm/swsmu/smu12/renoir_ppt.c
@@ -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;
  	}

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] drm/amd/pm: add missing spaces before '('
  2023-07-24  7:02 ` [PATCH] drm/amd/pm: add missing spaces before '(' sunran001
@ 2023-07-24 21:46   ` Alex Deucher
  0 siblings, 0 replies; 2+ messages in thread
From: Alex Deucher @ 2023-07-24 21:46 UTC (permalink / raw)
  To: sunran001; +Cc: linux-kernel, amd-gfx, dri-devel, alexander.deucher

Applied.  Thanks!

On Mon, Jul 24, 2023 at 3:02 AM <sunran001@208suo.com> wrote:
>
> ERROR: space required before the open parenthesis '('
>
> Signed-off-by: Ran Sun <sunran001@208suo.com>
> ---
>   drivers/gpu/drm/amd/pm/swsmu/smu12/renoir_ppt.c | 6 +++---
>   1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/gpu/drm/amd/pm/swsmu/smu12/renoir_ppt.c
> b/drivers/gpu/drm/amd/pm/swsmu/smu12/renoir_ppt.c
> index 8a8ba25c9ad7..a7569354229d 100644
> --- a/drivers/gpu/drm/amd/pm/swsmu/smu12/renoir_ppt.c
> +++ b/drivers/gpu/drm/amd/pm/swsmu/smu12/renoir_ppt.c
> @@ -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;
>         }

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-07-24 21:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20230724070049.8540-1-xujianghui@cdjrlc.com>
2023-07-24  7:02 ` [PATCH] drm/amd/pm: add missing spaces before '(' sunran001
2023-07-24 21:46   ` Alex Deucher

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).