From 1ecf2388882a5e1d724e1778b1673c97b2b052ca Mon Sep 17 00:00:00 2001 From: Stricted Date: Sat, 19 Jun 2021 23:06:58 +0000 Subject: [PATCH] amlogic: tvin: Fix enum conversion warnings Change-Id: Ib93abbeb272370b9e520a6eabdae8d9f1ca061cc --- drivers/amlogic/media/vin/tvin/hdmirx/hdmi_rx_drv.c | 2 +- drivers/amlogic/media/vin/tvin/viu/viuin.c | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/amlogic/media/vin/tvin/hdmirx/hdmi_rx_drv.c b/drivers/amlogic/media/vin/tvin/hdmirx/hdmi_rx_drv.c index 25928a380f9d..c96c672cae2f 100644 --- a/drivers/amlogic/media/vin/tvin/hdmirx/hdmi_rx_drv.c +++ b/drivers/amlogic/media/vin/tvin/hdmirx/hdmi_rx_drv.c @@ -845,7 +845,7 @@ void hdmirx_get_latency_info(struct tvin_sig_property_s *prop) { prop->latency.allm_mode = rx.vs_info_details.allm_mode; prop->latency.it_content = rx.cur.it_content; - prop->latency.cn_type = rx.cur.cn_type; + prop->latency.cn_type = (enum tvin_cn_type_e)rx.cur.cn_type; } /* diff --git a/drivers/amlogic/media/vin/tvin/viu/viuin.c b/drivers/amlogic/media/vin/tvin/viu/viuin.c index bb354b0af34e..f84ae7b3704b 100644 --- a/drivers/amlogic/media/vin/tvin/viu/viuin.c +++ b/drivers/amlogic/media/vin/tvin/viu/viuin.c @@ -420,7 +420,7 @@ static void viuin_sig_property(struct tvin_frontend_s *fe, case TVIN_PORT_VIU1_WB0_VPP: case TVIN_PORT_VIU1_WB1_VPP: vinfo = get_current_vinfo(); - prop->color_format = vinfo->viu_color_fmt; + prop->color_format = (enum tvin_color_fmt_e)vinfo->viu_color_fmt; break; /* ENCL/ENCI/ENCP is only for viu2 loopback currently @@ -438,14 +438,14 @@ static void viuin_sig_property(struct tvin_frontend_s *fe, else pr_err("error: TVIN_PORT_VIU2_ENCL line begin = end\n"); - prop->color_format = vinfo->viu_color_fmt; + prop->color_format = (enum tvin_color_fmt_e)vinfo->viu_color_fmt; break; case TVIN_PORT_VIU2_ENCI: vinfo = get_current_vinfo2(); /* always negative */ prop->polarity_vs = 1; /* negative */ - prop->color_format = vinfo->viu_color_fmt; + prop->color_format = (enum tvin_color_fmt_e)vinfo->viu_color_fmt; break; case TVIN_PORT_VIU2_ENCP: vinfo = get_current_vinfo2(); @@ -459,7 +459,7 @@ static void viuin_sig_property(struct tvin_frontend_s *fe, else pr_err("error: TVIN_PORT_VIU2_ENCP line begin = end\n"); - prop->color_format = vinfo->viu_color_fmt; + prop->color_format = (enum tvin_color_fmt_e)vinfo->viu_color_fmt; break; default: prop->color_format = devp->parm.cfmt; -- 2.20.1