[PATCH] drm/amd/display: Clean up errors in dce_clk_mgr.c

Ran Sun posted 1 patch 2 years, 6 months ago
drivers/gpu/drm/amd/display/dc/dce/dce_clk_mgr.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
[PATCH] drm/amd/display: Clean up errors in dce_clk_mgr.c
Posted by Ran Sun 2 years, 6 months ago
Fix the following errors reported by checkpatch:

ERROR: spaces required around that '?' (ctx:VxE)

Signed-off-by: Ran Sun <sunran001@208suo.com>
---
 drivers/gpu/drm/amd/display/dc/dce/dce_clk_mgr.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/amd/display/dc/dce/dce_clk_mgr.c b/drivers/gpu/drm/amd/display/dc/dce/dce_clk_mgr.c
index 07359eb89efc..e7acd6eec1fd 100644
--- a/drivers/gpu/drm/amd/display/dc/dce/dce_clk_mgr.c
+++ b/drivers/gpu/drm/amd/display/dc/dce/dce_clk_mgr.c
@@ -640,7 +640,7 @@ static void dce11_pplib_apply_display_requirements(
 	 * on power saving.
 	 *
 	 */
-	pp_display_cfg->min_dcfclock_khz = (context->stream_count > 4)?
+	pp_display_cfg->min_dcfclock_khz = (context->stream_count > 4) ?
 			pp_display_cfg->min_engine_clock_khz : 0;
 
 	pp_display_cfg->min_engine_clock_deep_sleep_khz
-- 
2.17.1
Re: [PATCH] drm/amd/display: Clean up errors in dce_clk_mgr.c
Posted by Alex Deucher 2 years, 6 months ago
Applied.  Thanks!

On Wed, Aug 2, 2023 at 2:26 AM Ran Sun <sunran001@208suo.com> wrote:
>
> Fix the following errors reported by checkpatch:
>
> ERROR: spaces required around that '?' (ctx:VxE)
>
> Signed-off-by: Ran Sun <sunran001@208suo.com>
> ---
>  drivers/gpu/drm/amd/display/dc/dce/dce_clk_mgr.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/amd/display/dc/dce/dce_clk_mgr.c b/drivers/gpu/drm/amd/display/dc/dce/dce_clk_mgr.c
> index 07359eb89efc..e7acd6eec1fd 100644
> --- a/drivers/gpu/drm/amd/display/dc/dce/dce_clk_mgr.c
> +++ b/drivers/gpu/drm/amd/display/dc/dce/dce_clk_mgr.c
> @@ -640,7 +640,7 @@ static void dce11_pplib_apply_display_requirements(
>          * on power saving.
>          *
>          */
> -       pp_display_cfg->min_dcfclock_khz = (context->stream_count > 4)?
> +       pp_display_cfg->min_dcfclock_khz = (context->stream_count > 4) ?
>                         pp_display_cfg->min_engine_clock_khz : 0;
>
>         pp_display_cfg->min_engine_clock_deep_sleep_khz
> --
> 2.17.1
>