Commit 47b0c91f authored by Eric Bernstein's avatar Eric Bernstein Committed by Alex Deucher

drm/amd/display: Fix various issues found by compiler warning as errors

[Why]
Diagnostics team reported various issues found when enabling warnings as errors

[How]
Fix implicit conversions
Signed-off-by: default avatarEric Bernstein <eric.bernstein@amd.com>
Reviewed-by: default avatarAric Cyr <Aric.Cyr@amd.com>
Acked-by: default avatarBhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent acdac228
...@@ -3681,7 +3681,7 @@ static void set_crtc_test_pattern(struct dc_link *link, ...@@ -3681,7 +3681,7 @@ static void set_crtc_test_pattern(struct dc_link *link,
struct pipe_ctx *odm_pipe; struct pipe_ctx *odm_pipe;
enum controller_dp_color_space controller_color_space; enum controller_dp_color_space controller_color_space;
int opp_cnt = 1; int opp_cnt = 1;
int count; uint16_t count = 0;
switch (test_pattern_color_space) { switch (test_pattern_color_space) {
case DP_TEST_PATTERN_COLOR_SPACE_RGB: case DP_TEST_PATTERN_COLOR_SPACE_RGB:
......
...@@ -189,7 +189,7 @@ struct _vcs_dpi_ip_params_st { ...@@ -189,7 +189,7 @@ struct _vcs_dpi_ip_params_st {
unsigned int min_vblank_lines; unsigned int min_vblank_lines;
unsigned int dppclk_delay_subtotal; unsigned int dppclk_delay_subtotal;
unsigned int dispclk_delay_subtotal; unsigned int dispclk_delay_subtotal;
unsigned int dcfclk_cstate_latency; double dcfclk_cstate_latency;
unsigned int dppclk_delay_scl; unsigned int dppclk_delay_scl;
unsigned int dppclk_delay_scl_lb_only; unsigned int dppclk_delay_scl_lb_only;
unsigned int dppclk_delay_cnvc_formatter; unsigned int dppclk_delay_cnvc_formatter;
......
...@@ -25,16 +25,15 @@ ...@@ -25,16 +25,15 @@
#ifndef __DC_DWBC_H__ #ifndef __DC_DWBC_H__
#define __DC_DWBC_H__ #define __DC_DWBC_H__
#include "dal_types.h"
#include "dc_hw_types.h" #include "dc_hw_types.h"
#define DWB_SW_V2 1 #define DWB_SW_V2 1
#define DWB_MCIF_BUF_COUNT 4 #define DWB_MCIF_BUF_COUNT 4
/* forward declaration of mcif_wb struct */ /* forward declaration of mcif_wb struct */
struct mcif_wb; struct mcif_wb;
enum dce_version;
enum dwb_sw_version { enum dwb_sw_version {
dwb_ver_1_0 = 1, dwb_ver_1_0 = 1,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment