]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: remove magic numbers in hdcp_ddc
authorWenjing Liu <Wenjing.Liu@amd.com>
Fri, 28 Feb 2020 17:16:07 +0000 (12:16 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 19 Mar 2020 04:03:04 +0000 (00:03 -0400)
commit1fab239608ecb1f2e18ae3383e8c603e0f0051d1
tree2579d6f782db57431fa55e9d28a263233954398f
parent364bf70bdfd6097856ff1048f94261b055998d28
drm/amd/display: remove magic numbers in hdcp_ddc

[why]
DP doesn't have message id as the first byte of an hdcp message,
current hdcp psp unifies HDMI and DP message so that it is required
when reading DP HDCP messages in hdcp_ddc, a message id needs to be
added as the first byte of the HDCP message.
The id is currently assigned as a magic number which is not a good
coding practice.

[how]
Replace magic numbers with macro defined in hdcp headers.

Signed-off-by: Wenjing Liu <Wenjing.Liu@amd.com>
Reviewed-by: Ashley Thomas <Ashley.Thomas2@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/hdcp/hdcp_ddc.c