printk("test_bus:1 scl: %d  sda: %d \n",getscl(adap), 
printk("test_bus:1 scl: %d  sda: %d\n", getscl(adap), 
static int test_bus(struct i2c_algo_iic_data *adap, char *name) {#if 0	int scl,sda;	sda=getsda(adap);	if (adap->getscl==NULL) {		printk("test_bus: Warning: Adapter can't read from clock line - skipping test.\n");		return 0;			}	scl=getscl(adap);	printk("test_bus: Adapter: %s scl: %d  sda: %d -- testing...\n",	name,getscl(adap),getsda(adap));	if (!scl || !sda ) {		printk("test_bus: %s seems to be busy.\n",adap->name);		goto bailout;	}	sdalo(adap);	printk("test_bus:1 scl: %d  sda: %d \n",getscl(adap),	       getsda(adap));	if ( 0 != getsda(adap) ) {		printk("test_bus: %s SDA stuck high!\n",name);		sdahi(adap);		goto bailout;	}	if ( 0 == getscl(adap) ) {		printk("test_bus: %s SCL unexpected low while pulling SDA low!\n",			name);		goto bailout;	}			sdahi(adap);	printk("test_bus:2 scl: %d  sda: %d \n",getscl(adap),	       getsda(adap));	if ( 0 == getsda(adap) ) {		printk("test_bus: %s SDA stuck low!\n",name);		sdahi(adap);		goto bailout;	}	if ( 0 == getscl(adap) ) {		printk("test_bus: %s SCL unexpected low while SDA high!\n",		       adap->name);	goto bailout;	}	scllo(adap);	printk("test_bus:3 scl: %d  sda: %d \n",getscl(adap),	       getsda(adap));	if ( 0 != getscl(adap) ) {		sclhi(adap);		goto bailout;	}	if ( 0 == getsda(adap) ) {		printk("test_bus: %s SDA unexpected low while pulling SCL low!\n",			name);		goto bailout;	}	sclhi(adap);	printk("test_bus:4 scl: %d  sda: %d \n",getscl(adap),	       getsda(adap));	if ( 0 == getscl(adap) ) {		printk("test_bus: %s SCL stuck low!\n",name);		sclhi(adap);		goto bailout;	}	if ( 0 == getsda(adap) ) {		printk("test_bus: %s SDA unexpected low while SCL high!\n",			name);		goto bailout;	}	printk("test_bus: %s passed test.\n",name);	return 0;bailout:	sdahi(adap);	sclhi(adap);	return -ENODEV;#endif	return (0);}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/541e6a02768404efb06bd1ea5f33d614732f41fc/i2c-algo-ite.c/clean/drivers/i2c/algos/i2c-algo-ite.c