From: Stricted Date: Sat, 19 Jun 2021 22:56:03 +0000 (+0000) Subject: amlogic: di_multi: Fix enum conversion warnings X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=34bb6c3267f0d32eb70a51675c02a73813fcfea7;p=GitHub%2FLineageOS%2FG12%2Fandroid_kernel_amlogic_linux-4.9.git amlogic: di_multi: Fix enum conversion warnings Change-Id: Ie4c96994a79d1e824ef375d2bb4868da1d41750a --- diff --git a/drivers/amlogic/media/di_multi/deinterlace_hw.c b/drivers/amlogic/media/di_multi/deinterlace_hw.c index 3c8495a6f4f9..a83c9e7ab4f7 100644 --- a/drivers/amlogic/media/di_multi/deinterlace_hw.c +++ b/drivers/amlogic/media/di_multi/deinterlace_hw.c @@ -4866,7 +4866,7 @@ void dbg_mif_reg(struct seq_file *s, enum DI_MIF0_ID eidx) if (DIM_IS_IC_EF(SC2)) { reg = opl1()->reg_mif_tab[eidx]; - seq_printf(s, "dump reg:%s\n", dim_get_mif_id_name(eidx)); + seq_printf(s, "dump reg:%s\n", dim_get_mif_id_name((enum EDI_MIF_REG_INDEX)eidx)); for (i = 0; i < MIF_REG_NUB; i++) { addr = reg[i]; diff --git a/drivers/amlogic/media/di_multi/di_pre.c b/drivers/amlogic/media/di_multi/di_pre.c index 76243c72ebd9..3dfdbd5403a9 100644 --- a/drivers/amlogic/media/di_multi/di_pre.c +++ b/drivers/amlogic/media/di_multi/di_pre.c @@ -182,7 +182,7 @@ void dpre_init(void) {/*reg:*/ struct di_hpre_s *pre = get_hw_pre(); - pre->pre_st = EDI_PRE_ST4_IDLE; + pre->pre_st = (enum EDI_PRE_ST4)EDI_PRE_ST4_IDLE; //bset(&pre->self_trig_mask, 2);// /*timer out*/ diff --git a/drivers/amlogic/media/di_multi/sc2/di_hw_v3.c b/drivers/amlogic/media/di_multi/sc2/di_hw_v3.c index 33dc9b8c7b88..fa7ce4749b01 100644 --- a/drivers/amlogic/media/di_multi/sc2/di_hw_v3.c +++ b/drivers/amlogic/media/di_multi/sc2/di_hw_v3.c @@ -4010,7 +4010,7 @@ void set_di_mif_v3(struct DI_MIF_S *mif, enum DI_MIF0_ID mif_index, if (is_mask(SC2_REG_MSK_nr)) { /* dbg */ op = &sc2reg; - PR_INF("%s:%s:\n", __func__, dim_get_mif_id_name(mif_index)); + PR_INF("%s:%s:\n", __func__, dim_get_mif_id_name((enum EDI_MIF_REG_INDEX)mif_index)); } reg = mif_reg_get_v3();