drm: Correct DP DSC macro typo
Subsystems (4)
PATCH 1/1 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.
Signed-off-by Rodrigo Siqueira <[email protected]>
--- drivers/gpu/drm/amd/display/dc/dsc/dc_dsc.c | 2 +- include/drm/drm_dp_helper.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-)
drivers/gpu/drm/amd/display/dc/dsc/dc_dsc.c +1 -1
@@ -129,7 +129,7 @@ static bool dsc_line_buff_depth_from_dpcd(int dpcd_line_buff_bit_depth, int *linstatic bool dsc_throughput_from_dpcd (int dpcd_throughput,int *throughput) {switch (dpcd_throughput) { -case DP_DSC_THROUGHPUT_MODE_0_UPSUPPORTED : +case DP_DSC_THROUGHPUT_MODE_0_UNSUPPORTED : *throughput =0 ;break ;case DP_DSC_THROUGHPUT_MODE_0_170 :
include/drm/drm_dp_helper.h +2 -2
@@ -292,7 +292,7 @@#define DP_DSC_PEAK_THROUGHPUT 0x06B# define DP_DSC_THROUGHPUT_MODE_0_MASK (0xf << 0)# define DP_DSC_THROUGHPUT_MODE_0_SHIFT 0 -# define DP_DSC_THROUGHPUT_MODE_0_UPSUPPORTED 0 +# define DP_DSC_THROUGHPUT_MODE_0_UNSUPPORTED 0# define DP_DSC_THROUGHPUT_MODE_0_340 (1 << 0)# define DP_DSC_THROUGHPUT_MODE_0_400 (2 << 0)# define DP_DSC_THROUGHPUT_MODE_0_450 (3 << 0)
@@ -310,7 +310,7 @@# define DP_DSC_THROUGHPUT_MODE_0_170 (15 << 0)/* 1.4a */ # define DP_DSC_THROUGHPUT_MODE_1_MASK (0xf << 4)# define DP_DSC_THROUGHPUT_MODE_1_SHIFT 4 -# define DP_DSC_THROUGHPUT_MODE_1_UPSUPPORTED 0 +# define DP_DSC_THROUGHPUT_MODE_1_UNSUPPORTED 0# define DP_DSC_THROUGHPUT_MODE_1_340 (1 << 4)# define DP_DSC_THROUGHPUT_MODE_1_400 (2 << 4)# define DP_DSC_THROUGHPUT_MODE_1_450 (3 << 4)
Signature · 6 lines
2.26.2 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Quoted 7 lines · Rodrigo Siqueira
In the file
drm_dp_helper.hwe 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.Signed-off-by Rodrigo Siqueira <[email protected]>
Reviewed-by Harry Wentland <[email protected]>
Harry
Quoted 33 lines
--- drivers/gpu/drm/amd/display/dc/dsc/dc_dsc.c | 2 +- include/drm/drm_dp_helper.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-)drivers/gpu/drm/amd/display/dc/dsc/dc_dsc.c +1
-1@@ -129,7 +129,7 @@ static bool dsc_line_buff_depth_from_dpcd(int dpcd_line_buff_bit_depth, int *linstatic bool dsc_throughput_from_dpcd (int dpcd_throughput,int *throughput) {switch (dpcd_throughput) { -case DP_DSC_THROUGHPUT_MODE_0_UPSUPPORTED : +case DP_DSC_THROUGHPUT_MODE_0_UNSUPPORTED : *throughput =0 ;break ;case DP_DSC_THROUGHPUT_MODE_0_170 :include/drm/drm_dp_helper.h +1
-1@@ -292,7 +292,7 @@#define DP_DSC_PEAK_THROUGHPUT 0x06B# define DP_DSC_THROUGHPUT_MODE_0_MASK (0xf << 0)# define DP_DSC_THROUGHPUT_MODE_0_SHIFT 0 -# define DP_DSC_THROUGHPUT_MODE_0_UPSUPPORTED 0 +# define DP_DSC_THROUGHPUT_MODE_0_UNSUPPORTED 0# define DP_DSC_THROUGHPUT_MODE_0_340 (1 << 0)# define DP_DSC_THROUGHPUT_MODE_0_400 (2 << 0)# define DP_DSC_THROUGHPUT_MODE_0_450 (3 << 0)
include/drm/drm_dp_helper.h line 316
Quoted 8 lines
include/drm/drm_dp_helper.h +1
-1@@ -310,7 +310,7 @@# define DP_DSC_THROUGHPUT_MODE_0_170 (15 << 0)/* 1.4a */ # define DP_DSC_THROUGHPUT_MODE_1_MASK (0xf << 4)# define DP_DSC_THROUGHPUT_MODE_1_SHIFT 4 -# define DP_DSC_THROUGHPUT_MODE_1_UPSUPPORTED 0 +# define DP_DSC_THROUGHPUT_MODE_1_UNSUPPORTED 0# define DP_DSC_THROUGHPUT_MODE_1_340 (1 << 4)# define DP_DSC_THROUGHPUT_MODE_1_400 (2 << 4)# define DP_DSC_THROUGHPUT_MODE_1_450 (3 << 4)
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx