drm/amd/display/dc/dce110/dce110_mem_input_v: use swap macro in program_size_and_rotation
authorGustavo A. R. Silva <garsilva@embeddedor.com>
Fri, 10 Nov 2017 22:31:09 +0000 (16:31 -0600)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 6 Dec 2017 17:47:57 +0000 (12:47 -0500)
commit8aa111e34deedded58cd8576755f31659ba676f5
treeff7d579060ea17d92d03868902cc061fa07b8690
parent99676f20dc913672166ab3b22fe29c20a2c27a82
drm/amd/display/dc/dce110/dce110_mem_input_v: use swap macro in program_size_and_rotation

Make use of the swap macro instead of _manually_ swapping values
and remove unnecessary variable swap.

This makes the code easier to read and maintain.

This code was detected with the help of Coccinelle.

Signed-off-by: Gustavo A. R. Silva <garsilva@embeddedor.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dce110/dce110_mem_input_v.c