[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20240822065137.1331172-2-yujiaoliang@vivo.com>
Date: Thu, 22 Aug 2024 14:51:32 +0800
From: Yu Jiaoliang <yujiaoliang@...o.com>
To: Harry Wentland <harry.wentland@....com>,
Leo Li <sunpeng.li@....com>,
Rodrigo Siqueira <Rodrigo.Siqueira@....com>,
Xinhui Pan <Xinhui.Pan@....com>,
David Airlie <airlied@...il.com>,
Daniel Vetter <daniel@...ll.ch>,
Hamza Mahfooz <hamza.mahfooz@....com>,
Alex Hung <alex.hung@....com>,
Hersen Wu <hersenxs.wu@....com>,
Dillon Varone <dillon.varone@....com>,
amd-gfx@...ts.freedesktop.org,
dri-devel@...ts.freedesktop.org,
linux-kernel@...r.kernel.org
Cc: opensource.kernel@...o.com
Subject: [PATCH v1 1/6] drm/amd/display: Use max/min macro
Use the macro instead of ternary operator.
Signed-off-by: Yu Jiaoliang <yujiaoliang@...o.com>
---
drivers/gpu/drm/amd/display/dc/bios/bios_parser.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/amd/display/dc/bios/bios_parser.c b/drivers/gpu/drm/amd/display/dc/bios/bios_parser.c
index 3bacf470f7c5..f8c1650eb21f 100644
--- a/drivers/gpu/drm/amd/display/dc/bios/bios_parser.c
+++ b/drivers/gpu/drm/amd/display/dc/bios/bios_parser.c
@@ -2300,8 +2300,8 @@ static enum bp_result get_integrated_info_v8(
le32_to_cpu(info_v8->ulNbpStateNClkFreq[0]);
for (i = 1; i < 4; ++i)
info->minimum_n_clk =
- info->minimum_n_clk < le32_to_cpu(info_v8->ulNbpStateNClkFreq[i]) ?
- info->minimum_n_clk : le32_to_cpu(info_v8->ulNbpStateNClkFreq[i]);
+ min(info->minimum_n_clk,
+ le32_to_cpu(info_v8->ulNbpStateNClkFreq[i]));
info->idle_n_clk = le32_to_cpu(info_v8->ulIdleNClk);
info->ddr_dll_power_up_time =
--
2.34.1
Powered by blists - more mailing lists