struct or51132_state* state = (struct or51132_state*) fe->demodulator_priv; 
struct or51132_state* state = fe->demodulator_priv; 
static int or51132_set_parameters(struct dvb_frontend* fe,				  struct dvb_frontend_parameters *param){	int ret;	u8 buf[4];	struct or51132_state* state = (struct or51132_state*) fe->demodulator_priv;	const struct firmware *fw;	/* Change only if we are actually changing the modulation */	if (state->current_modulation != param->u.vsb.modulation) {		switch(param->u.vsb.modulation) {		case VSB_8:			dprintk("set_parameters VSB MODE\n");			printk("or51132: Waiting for firmware upload(%s)...\n",			       OR51132_VSB_FIRMWARE);			ret = request_firmware(&fw, OR51132_VSB_FIRMWARE,					       &state->i2c->dev);			if (ret){				printk(KERN_WARNING "or51132: No firmware up"				       "loaded(timeout or file not found?)\n");				return ret;			}			/* Set non-punctured clock for VSB */			state->config->set_ts_params(fe, 0);			break;		case QAM_AUTO:		case QAM_64:		case QAM_256:			dprintk("set_parameters QAM MODE\n");			printk("or51132: Waiting for firmware upload(%s)...\n",			       OR51132_QAM_FIRMWARE);			ret = request_firmware(&fw, OR51132_QAM_FIRMWARE,					       &state->i2c->dev);			if (ret){				printk(KERN_WARNING "or51132: No firmware up"				       "loaded(timeout or file not found?)\n");				return ret;			}			/* Set punctured clock for QAM */			state->config->set_ts_params(fe, 1);			break;		default:			printk("or51132:Modulation type(%d) UNSUPPORTED\n",			       param->u.vsb.modulation);			return -1;		};		ret = or51132_load_firmware(fe, fw);		release_firmware(fw);		if (ret) {			printk(KERN_WARNING "or51132: Writing firmware to "			       "device failed!\n");			return ret;		}		printk("or51132: Firmware upload complete.\n");		state->current_modulation = param->u.vsb.modulation;		or51132_setmode(fe);	}	/* Change only if we are actually changing the channel */	if (state->current_frequency != param->frequency) {		dvb_pll_configure(state->config->pll_desc, buf,				  param->frequency, 0);		dprintk("set_parameters tuner bytes: 0x%02x 0x%02x "			"0x%02x 0x%02x\n",buf[0],buf[1],buf[2],buf[3]);		if (i2c_writebytes(state, state->config->pll_address ,buf, 4))			printk(KERN_WARNING "or51132: set_parameters error "			       "writing to tuner\n");		/* Set to current mode */		or51132_setmode(fe);		/* Update current frequency */		state->current_frequency = param->frequency;	}	return 0;}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/b8742700f13163ffa00cddce2a3c940b9ab2ab5a/or51132.c/clean/drivers/media/dvb/frontends/or51132.c