i2c_set_adapdata(&btv->c.i2c_adap, btv); btv->i2c_client.adapter = &btv->c.i2c_adap; 
i2c_set_adapdata(&btv->c.i2c_adap, btv); btv->i2c_client.adapter = &btv->c.i2c_adap; 
int __devinit init_bttv_i2c(struct bttv *btv){	memcpy(&btv->i2c_client, &bttv_i2c_client_template,	       sizeof(bttv_i2c_client_template));	if (i2c_hw)		btv->use_i2c_hw = 1;	if (btv->use_i2c_hw) {		/* bt878 */		memcpy(&btv->c.i2c_adap, &bttv_i2c_adap_hw_template,		       sizeof(bttv_i2c_adap_hw_template));	} else {		/* bt848 */		memcpy(&btv->c.i2c_adap, &bttv_i2c_adap_sw_template,		       sizeof(bttv_i2c_adap_sw_template));		memcpy(&btv->i2c_algo, &bttv_i2c_algo_bit_template,		       sizeof(bttv_i2c_algo_bit_template));		btv->i2c_algo.data = btv;		btv->c.i2c_adap.algo_data = &btv->i2c_algo;	}	btv->c.i2c_adap.dev.parent = &btv->c.pci->dev;	snprintf(btv->c.i2c_adap.name, sizeof(btv->c.i2c_adap.name),		 "bt%d #%d [%s]", btv->id, btv->c.nr,		 btv->use_i2c_hw ? "hw" : "sw");        i2c_set_adapdata(&btv->c.i2c_adap, btv);        btv->i2c_client.adapter = &btv->c.i2c_adap;#ifdef I2C_CLASS_TV_ANALOG	if (bttv_tvcards[btv->c.type].no_video)		btv->c.i2c_adap.class &= ~I2C_CLASS_TV_ANALOG;	if (bttv_tvcards[btv->c.type].has_dvb)		btv->c.i2c_adap.class |= I2C_CLASS_TV_DIGITAL;#endif	if (btv->use_i2c_hw) {		btv->i2c_rc = i2c_add_adapter(&btv->c.i2c_adap);	} else {		bttv_bit_setscl(btv,1);		bttv_bit_setsda(btv,1);		btv->i2c_rc = i2c_bit_add_bus(&btv->c.i2c_adap);	}	if (0 == btv->i2c_rc && i2c_scan)		do_i2c_scan(btv->c.name,&btv->i2c_client);	return btv->i2c_rc;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/4ac97914c6c35f6bf132071c718e034d0846b9f5/bttv-i2c.c/clean/drivers/media/video/bttv-i2c.c