static int dst_command(struct dst_state* state, u8 * data, u8 len) 
int dst_command(struct dst_state* state, u8 * data, u8 len) 
static int dst_command(struct dst_state* state, u8 * data, u8 len){	int retval;	u8 reply;	dst_i2c_enable(state);	dst_reset8820(state);	retval = write_dst(state, data, len);	if (retval < 0) {		dst_i2c_disable(state);		dprintk("%s: write not successful\n", __FUNCTION__);		return retval;	}	msleep(33);	retval = read_dst(state, &reply, 1);	dst_i2c_disable(state);	if (retval < 0) {		dprintk("%s: read verify  not successful\n", __FUNCTION__);		return retval;	}	if (reply != 0xff) {		dprintk("%s: write reply not 0xff 0x%02x \n", __FUNCTION__, reply);		return 0;	}	if (len >= 2 && data[0] == 0 && (data[1] == 1 || data[1] == 3))		return 0;	if (!dst_wait_dst_ready(state))		return 0;	// dst_i2c_enable(i2c); Per dimitri	retval = read_dst(state, state->rxbuffer, 8);	dst_i2c_disable(state);	if (retval < 0) {		dprintk("%s: read not successful\n", __FUNCTION__);		return 0;	}	if (state->rxbuffer[7] != dst_check_sum(state->rxbuffer, 7)) {		dprintk("%s: checksum failure\n", __FUNCTION__);		return 0;	}	return 0;}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/50b215a05878ce9636dace6cd21f7e91ff005058/dst.c/clean/drivers/media/dvb/bt8xx/dst.c