All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/4] drm/amd/display: Use min()/max() helper macros
@ 2023-01-14 21:18 ` Deepak R Varma
  0 siblings, 0 replies; 14+ messages in thread
From: Deepak R Varma @ 2023-01-14 21:18 UTC (permalink / raw)
  To: Harry Wentland, Leo Li, Rodrigo Siqueira, Alex Deucher,
	Christian König, Pan, Xinhui, David Airlie, Daniel Vetter,
	amd-gfx, dri-devel, linux-kernel
  Cc: Praveen Kumar, Saurabh Singh Sengar

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(-)

-- 
2.34.1




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

end of thread, other threads:[~2023-01-22 21:33 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-01-14 21:18 [PATCH 0/4] drm/amd/display: Use min()/max() helper macros Deepak R Varma
2023-01-14 21:18 ` Deepak R Varma
2023-01-14 21:19 ` [PATCH 1/4] drm/amd/display: Use min()/max() macros in dcn_calc_math Deepak R Varma
2023-01-14 21:20   ` Deepak R Varma
2023-01-14 21:20   ` Deepak R Varma
2023-01-14 21:19   ` Deepak R Varma
2023-01-14 21:20 ` [PATCH 2/4] drm/amd/display: dcn20: Use min()/max() helper macros Deepak R Varma
2023-01-14 21:20   ` Deepak R Varma
2023-01-14 21:21 ` [PATCH 3/4] drm/amd/display: dcn21: " Deepak R Varma
2023-01-14 21:21   ` Deepak R Varma
2023-01-14 21:21 ` [PATCH 4/4] drm/amd/display: dcn32: " Deepak R Varma
2023-01-14 21:21   ` Deepak R Varma
2023-01-22 18:45 ` [PATCH 0/4] drm/amd/display: " Deepak R Varma
2023-01-22 18:45   ` Deepak R Varma

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.