drm/amd/display: Add bit swap helper based on endianness
authorRodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Fri, 24 Apr 2020 14:49:38 +0000 (10:49 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 28 May 2020 18:00:48 +0000 (14:00 -0400)
commit569f4f9bf059ee3f08afe4b48fc77513386d2543
tree2769965603228768505dcdb4fbcd0eacff87906e
parent0922b899f36621126d49c0d86e90fb18d572d8a1
drm/amd/display: Add bit swap helper based on endianness

Christian Koenig pointed out a code duplication related to bit swap in
case of big-endian manipulation. This commit adds a helper for handling
this verification and reduces the requirement of replicate some part of
the code.

Signed-off-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Reviewed-by: Wyatt Wood <Wyatt.Wood@amd.com>
Acked-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/modules/power/power_helpers.c