struct ves1820_state* state = (struct ves1820_state*) fe->demodulator_priv; 
struct ves1820_state* state = fe->demodulator_priv; 
static int ves1820_set_parameters(struct dvb_frontend* fe, struct dvb_frontend_parameters *p){	struct ves1820_state* state = (struct ves1820_state*) fe->demodulator_priv;	static const u8 reg0x00[] = { 0x00, 0x04, 0x08, 0x0c, 0x10 };	static const u8 reg0x01[] = { 140, 140, 106, 100, 92 };	static const u8 reg0x05[] = { 135, 100, 70, 54, 38 };	static const u8 reg0x08[] = { 162, 116, 67, 52, 35 };	static const u8 reg0x09[] = { 145, 150, 106, 126, 107 };	int real_qam = p->u.qam.modulation - QAM_16;	if (real_qam < 0 || real_qam > 4)		return -EINVAL;	state->config->pll_set(fe, p);	ves1820_set_symbolrate(state, p->u.qam.symbol_rate);	ves1820_writereg(state, 0x34, state->pwm);	ves1820_writereg(state, 0x01, reg0x01[real_qam]);	ves1820_writereg(state, 0x05, reg0x05[real_qam]);	ves1820_writereg(state, 0x08, reg0x08[real_qam]);	ves1820_writereg(state, 0x09, reg0x09[real_qam]);	ves1820_setup_reg0(state, reg0x00[real_qam], p->inversion);	return 0;}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/b8742700f13163ffa00cddce2a3c940b9ab2ab5a/ves1820.c/clean/drivers/media/dvb/frontends/ves1820.c