if (i2c_selectreadbytes(state, 2, buf, 1)) 
if (i2c_read_demod_bytes(state, 2, buf, 1)) 
struct dvb_frontend* lgdt330x_attach(const struct lgdt330x_config* config,				     struct i2c_adapter* i2c){	struct lgdt330x_state* state = NULL;	u8 buf[1];	/* Allocate memory for the internal state */	state = (struct lgdt330x_state*) kmalloc(sizeof(struct lgdt330x_state), GFP_KERNEL);	if (state == NULL)		goto error;	memset(state,0,sizeof(*state));	/* Setup the state */	state->config = config;	state->i2c = i2c;	memcpy(&state->ops, &lgdt330x_ops, sizeof(struct dvb_frontend_ops));	/* Verify communication with demod chip */	if (i2c_selectreadbytes(state, 2, buf, 1))		goto error;	state->current_frequency = -1;	state->current_modulation = -1;	/* Create dvb_frontend */	state->frontend.ops = &state->ops;	state->frontend.demodulator_priv = state;	return &state->frontend;error:	if (state)		kfree(state);	dprintk("%s: ERROR\n",__FUNCTION__);	return NULL;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/1963c907b21e140082d081b1c8f8c2154593c7d7/lgdt330x.c/clean/drivers/media/dvb/frontends/lgdt330x.c