Skip to content

drm/amd/display: Use min()/max() helper macros

Deepak R Varma amd-gfx dri-devel lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4drm/amd/display: Use min()/max() macros in dcn_calc_mathdrivers/gpu/drm/amd/display/dc/dml/calcs/dcn_calc_math.c+5 -50 replies
2/4drm/amd/display: dcn20: Use min()/max() helper macrosdrivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c+2 -80 replies
3/4drm/amd/display: dcn21: Use min()/max() helper macrosdrivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c+1 -40 replies
4/4drm/amd/display: dcn32: Use min()/max() helper macrosdrivers/gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c+2 -20 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/4] drm/amd/display: Use min()/max() helper macros

This patch series proposes using standard min() / max() helper macros instead of direct variable comparison using the ternary operator or if/else evaluations. I have tested the change using a dummy module and similar simulations on my x86 machine.

Deepak R Varma (4):
drm/amd/display: Use min()/max() macros in dcn_calc_math drm/amd/display: dcn20: Use min()/max() helper macros drm/amd/display: dcn21: Use min()/max() helper macros drm/amd/display: dcn32: Use min()/max() helper macros

 .../gpu/drm/amd/display/dc/dml/calcs/dcn_calc_math.c   | 10 +++++-----
 .../drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c |  5 +----
 .../amd/display/dc/dml/dcn20/display_mode_vba_20v2.c   |  5 +----
 .../drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c |  5 +----
 drivers/gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c   |  4 ++--
 5 files changed, 10 insertions(+), 19 deletions(-)
Signature · 1 line
2.34.1