OSDN Git Service

drm/amd/display: use swap() helper macro in bios_parser
authorDeepak R Varma <drv@mailo.com>
Sun, 15 Jan 2023 09:26:14 +0000 (14:56 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 17 Jan 2023 21:11:51 +0000 (16:11 -0500)
commitdf86a0c20648298bb4517ba34c677e0499e7db4f
treebc0a7660a074dc94a32425171a428abb434cf7db
parente5975d7816a7a7e2273a3fab755a17acde1e7769
drm/amd/display: use swap() helper macro in bios_parser

Use swap() helper macro instead of open coded swap instructions. The
change also facilitates code cleanup and realignment for improved
readability.  Issue identified using swap.cocci Coccinelle semantic
patch script.

Signed-off-by: Deepak R Varma <drv@mailo.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c