if (ret!=6) 
if (ret!=6) 
static void mt2050_set_if_freq(struct i2c_client *c,unsigned int freq, unsigned int if2){	struct tuner *t = i2c_get_clientdata(c);	unsigned int if1=1218*1000*1000;	unsigned int f_lo1,f_lo2,lo1,lo2,f_lo1_modulo,f_lo2_modulo,num1,num2,div1a,div1b,div2a,div2b;	int ret;	unsigned char buf[6];	tuner_dbg("mt2050_set_if_freq freq=%d if1=%d if2=%d\n",		  freq,if1,if2);	f_lo1=freq+if1;	f_lo1=(f_lo1/1000000)*1000000;	f_lo2=f_lo1-freq-if2;	f_lo2=(f_lo2/50000)*50000;	lo1=f_lo1/4000000;	lo2=f_lo2/4000000;	f_lo1_modulo= f_lo1-(lo1*4000000);	f_lo2_modulo= f_lo2-(lo2*4000000);	num1=4*f_lo1_modulo/4000000;	num2=4096*(f_lo2_modulo/1000)/4000;	// todo spurchecks	div1a=(lo1/12)-1;	div1b=lo1-(div1a+1)*12;	div2a=(lo2/8)-1;	div2b=lo2-(div2a+1)*8;	if (tuner_debug > 1) {		tuner_dbg("lo1 lo2 = %d %d\n", lo1, lo2);		tuner_dbg("num1 num2 div1a div1b div2a div2b= %x %x %x %x %x %x\n",			  num1,num2,div1a,div1b,div2a,div2b);	}	buf[0]=1;	buf[1]= 4*div1b + num1;	if(freq<275*1000*1000) buf[1] = buf[1]|0x80;	buf[2]=div1a;	buf[3]=32*div2b + num2/256;	buf[4]=num2-(num2/256)*256;	buf[5]=div2a;	if(num2!=0) buf[5]=buf[5]|0x40;	if (tuner_debug > 1) {		int i;		tuner_dbg("bufs is: ");		for(i=0;i<6;i++)			printk("%x ",buf[i]);		printk("\n");	}	ret=i2c_master_send(c,buf,6);        if (ret!=6)		tuner_warn("i2c i/o error: rc == %d (should be 6)\n",ret);}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/4ac97914c6c35f6bf132071c718e034d0846b9f5/mt20xx.c/clean/drivers/media/video/mt20xx.c