drm/amd/display: Remove byte swapping for dmcub abm config table
authorWyatt Wood <wyatt.wood@amd.com>
Mon, 30 Mar 2020 13:58:29 +0000 (09:58 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 22 Apr 2020 22:11:47 +0000 (18:11 -0400)
commitf12f70117a3cc9b7286dea486cb7af9920aa5dfd
treef9ed19f1af9342c516070ce9bb4304709bbec99f
parent868149c9a072cbdc22a73ce25a487f9fbfa171ef
drm/amd/display: Remove byte swapping for dmcub abm config table

[Why]
Since x86 and dmcub are both little endian, byte swapping isn't
necessary. Dmcu requires byte swapping as it is big endian.

[How]
Add flag to function definitions to determine if byte swapping is
necessary.

Signed-off-by: Wyatt Wood <wyatt.wood@amd.com>
Reviewed-by: Anthony Koo <Anthony.Koo@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