]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit67bd4c0c5abbf65f0f1b369ec4b044ff4b7fd03a
treef9ed19f1af9342c516070ce9bb4304709bbec99f
parent59a8e556292178f101b3ea7e9dc88695182864ec
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