struct cx22702_state* state = (struct cx22702_state*) fe->demodulator_priv; 
struct cx22702_state* state = fe->demodulator_priv; 
static int cx22702_read_snr(struct dvb_frontend* fe, u16* snr){	struct cx22702_state* state = (struct cx22702_state*) fe->demodulator_priv;	u16 rs_ber=0;	if(cx22702_readreg (state, 0xE4) & 0x02) {		/* Realtime statistics */		rs_ber = (cx22702_readreg (state, 0xDE) & 0x7F) << 7			| (cx22702_readreg (state, 0xDF)& 0x7F);	} else {		/* Averagine statistics */		rs_ber = (cx22702_readreg (state, 0xDE) & 0x7F) << 8			| cx22702_readreg (state, 0xDF);	}	*snr = ~rs_ber;	return 0;}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/b8742700f13163ffa00cddce2a3c940b9ab2ab5a/cx22702.c/buggy/drivers/media/dvb/frontends/cx22702.c