 buf[0]=0; ret=i2c_master_send(c,buf,4); buf[5]=5; ret=i2c_master_send(c,buf+5,4); buf[11]=11; ret=i2c_master_send(c,buf+11,3); if(ret!=3) 
 buf[0]=0; ret=i2c_master_send(c,buf,4); buf[5]=5; ret=i2c_master_send(c,buf+5,4); buf[11]=11; ret=i2c_master_send(c,buf+11,3); if(ret!=3) 
static void mt2032_set_if_freq(struct i2c_client *c, unsigned int rfin,			       unsigned int if1, unsigned int if2,			       unsigned int from, unsigned int to){	unsigned char buf[21];	int lint_try,ret,sel,lock=0;	struct tuner *t = i2c_get_clientdata(c);	tuner_dbg("mt2032_set_if_freq rfin=%d if1=%d if2=%d from=%d to=%d\n",		  rfin,if1,if2,from,to);        buf[0]=0;        ret=i2c_master_send(c,buf,1);        i2c_master_recv(c,buf,21);	buf[0]=0;	ret=mt2032_compute_freq(c,rfin,if1,if2,from,to,&buf[1],&sel,t->xogc);	if (ret<0)		return;        // send only the relevant registers per Rev. 1.2        buf[0]=0;        ret=i2c_master_send(c,buf,4);        buf[5]=5;        ret=i2c_master_send(c,buf+5,4);        buf[11]=11;        ret=i2c_master_send(c,buf+11,3);        if(ret!=3)		tuner_warn("i2c i/o error: rc == %d (should be 3)\n",ret);	// wait for PLLs to lock (per manual), retry LINT if not.	for(lint_try=0; lint_try<2; lint_try++) {		lock=mt2032_check_lo_lock(c);		if(optimize_vco)			lock=mt2032_optimize_vco(c,sel,lock);		if(lock==6) break;		tuner_dbg("mt2032: re-init PLLs by LINT\n");		buf[0]=7;		buf[1]=0x80 +8+t->xogc; // set LINT to re-init PLLs		i2c_master_send(c,buf,2);		mdelay(10);		buf[1]=8+t->xogc;		i2c_master_send(c,buf,2);        }	if (lock!=6)		tuner_warn("MT2032 Fatal Error: PLLs didn't lock.\n");	buf[0]=2;	buf[1]=0x20; // LOGC for optimal phase noise	ret=i2c_master_send(c,buf,2);	if (ret!=2)		tuner_warn("i2c i/o error: rc == %d (should be 2)\n",ret);}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/4ac97914c6c35f6bf132071c718e034d0846b9f5/mt20xx.c/clean/drivers/media/video/mt20xx.c