vendorcode/mediatek/mt8195: Fix casting enum of different types
Clang warns about this. Change-Id: I18ff23c3c18b7cd74f0d6fe0b308b9096ce269ae Signed-off-by: Arthur Heymans <arthur@aheymans.xyz> Reviewed-on: https://review.coreboot.org/c/coreboot/+/74549 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Elyes Haouas <ehaouas@noos.fr>
This commit is contained in:
		
				
					committed by
					
						
						Lean Sheng Tan
					
				
			
			
				
	
			
			
			
						parent
						
							e9d9c1e898
						
					
				
				
					commit
					3c2fa3519c
				
			@@ -1497,8 +1497,8 @@ void dram_auto_detection(void)
 | 
				
			|||||||
	if (!u1IsLP4Family(dram_type) ||
 | 
						if (!u1IsLP4Family(dram_type) ||
 | 
				
			||||||
		read_offline_dram_mdl_data(&dram_info) < 0) {
 | 
							read_offline_dram_mdl_data(&dram_info) < 0) {
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
		dram_mode = (u1IsLP4Family(dram_type))?
 | 
							dram_mode = (DRAM_CBT_MODE_EXTERN_T)((u1IsLP4Family(dram_type))?
 | 
				
			||||||
			CBT_BYTE_MODE1 : CBT_NORMAL_MODE;
 | 
											     CBT_BYTE_MODE1 : CBT_NORMAL_MODE);
 | 
				
			||||||
#if defined(SLT)
 | 
					#if defined(SLT)
 | 
				
			||||||
		SLT_Test_Main_Flow(dram_type, dram_mode, &dram_info, SLT_USED);
 | 
							SLT_Test_Main_Flow(dram_type, dram_mode, &dram_info, SLT_USED);
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
@@ -2280,4 +2280,3 @@ static unsigned int get_ch_num_by_auxadc(void)
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
 | 
					 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user