Skip to content

Commit 7837300

Browse files
Rodrigo Siqueiraalexdeucher
authored andcommitted
drm: Correct DP DSC macro typo
In the file drm_dp_helper.h we have a macro named DP_DSC_THROUGHPUT_MODE_{0,1}_UPSUPPORTED, the correct name should be DP_DSC_THROUGHPUT_MODE_{0,1}_UNSUPPORTED. This commits adjusts this typo in the header file and in other places that attempt to access this macro. Reviewed-by: Harry Wentland <harry.wentland@amd.com> Signed-off-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> Link: https://patchwork.freedesktop.org/patch/msgid/20200429184142.1867987-1-Rodrigo.Siqueira@amd.com
1 parent ef54569 commit 7837300

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎drivers/gpu/drm/amd/display/dc/dsc/dc_dsc.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ static bool dsc_line_buff_depth_from_dpcd(int dpcd_line_buff_bit_depth, int *lin
129129
static bool dsc_throughput_from_dpcd(int dpcd_throughput, int *throughput)
130130
{
131131
switch (dpcd_throughput) {
132-
case DP_DSC_THROUGHPUT_MODE_0_UPSUPPORTED:
132+
case DP_DSC_THROUGHPUT_MODE_0_UNSUPPORTED:
133133
*throughput = 0;
134134
break;
135135
case DP_DSC_THROUGHPUT_MODE_0_170:

‎include/drm/drm_dp_helper.h‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@
292292
#define DP_DSC_PEAK_THROUGHPUT 0x06B
293293
# define DP_DSC_THROUGHPUT_MODE_0_MASK (0xf << 0)
294294
# define DP_DSC_THROUGHPUT_MODE_0_SHIFT 0
295-
# define DP_DSC_THROUGHPUT_MODE_0_UPSUPPORTED 0
295+
# define DP_DSC_THROUGHPUT_MODE_0_UNSUPPORTED 0
296296
# define DP_DSC_THROUGHPUT_MODE_0_340 (1 << 0)
297297
# define DP_DSC_THROUGHPUT_MODE_0_400 (2 << 0)
298298
# define DP_DSC_THROUGHPUT_MODE_0_450 (3 << 0)
@@ -310,7 +310,7 @@
310310
# define DP_DSC_THROUGHPUT_MODE_0_170 (15 << 0) /* 1.4a */
311311
# define DP_DSC_THROUGHPUT_MODE_1_MASK (0xf << 4)
312312
# define DP_DSC_THROUGHPUT_MODE_1_SHIFT 4
313-
# define DP_DSC_THROUGHPUT_MODE_1_UPSUPPORTED 0
313+
# define DP_DSC_THROUGHPUT_MODE_1_UNSUPPORTED 0
314314
# define DP_DSC_THROUGHPUT_MODE_1_340 (1 << 4)
315315
# define DP_DSC_THROUGHPUT_MODE_1_400 (2 << 4)
316316
# define DP_DSC_THROUGHPUT_MODE_1_450 (3 << 4)

0 commit comments

Comments
 (0)