diff options
Diffstat (limited to 'drivers/media/dvb/frontends/or51211.c')
-rw-r--r-- | drivers/media/dvb/frontends/or51211.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/media/dvb/frontends/or51211.c b/drivers/media/dvb/frontends/or51211.c index 6a6b0d727c6f..7eaa4765593f 100644 --- a/drivers/media/dvb/frontends/or51211.c +++ b/drivers/media/dvb/frontends/or51211.c | |||
@@ -307,19 +307,19 @@ static int or51211_read_snr(struct dvb_frontend* fe, u16* snr) | |||
307 | 307 | ||
308 | if (i2c_writebytes(state,state->config->demod_address,snd_buf,3)) { | 308 | if (i2c_writebytes(state,state->config->demod_address,snd_buf,3)) { |
309 | printk(KERN_WARNING "%s: error writing snr reg\n", | 309 | printk(KERN_WARNING "%s: error writing snr reg\n", |
310 | __FUNCTION__); | 310 | __func__); |
311 | return -1; | 311 | return -1; |
312 | } | 312 | } |
313 | if (i2c_readbytes(state,state->config->demod_address,rec_buf,2)) { | 313 | if (i2c_readbytes(state,state->config->demod_address,rec_buf,2)) { |
314 | printk(KERN_WARNING "%s: read_status read error\n", | 314 | printk(KERN_WARNING "%s: read_status read error\n", |
315 | __FUNCTION__); | 315 | __func__); |
316 | return -1; | 316 | return -1; |
317 | } | 317 | } |
318 | 318 | ||
319 | state->snr = calculate_snr(rec_buf[0], 89599047); | 319 | state->snr = calculate_snr(rec_buf[0], 89599047); |
320 | *snr = (state->snr) >> 16; | 320 | *snr = (state->snr) >> 16; |
321 | 321 | ||
322 | dprintk("%s: noise = 0x%02x, snr = %d.%02d dB\n", __FUNCTION__, rec_buf[0], | 322 | dprintk("%s: noise = 0x%02x, snr = %d.%02d dB\n", __func__, rec_buf[0], |
323 | state->snr >> 24, (((state->snr>>8) & 0xffff) * 100) >> 16); | 323 | state->snr >> 24, (((state->snr>>8) & 0xffff) * 100) >> 16); |
324 | 324 | ||
325 | return 0; | 325 | return 0; |