diff options
author | Michael Krufky <mkrufky@linuxtv.org> | 2009-02-28 17:34:25 -0500 |
---|---|---|
committer | Michael Krufky <mkrufky@linuxtv.org> | 2009-02-28 17:34:25 -0500 |
commit | adfdbfcc476847ad0ea239eb72e52d4a7905563f (patch) | |
tree | 00e643894358bc8430deabc86a2a962c51d6641f /linux/drivers/media/common | |
parent | 292c5119045c438520490bda073ed74ba4c9cf36 (diff) | |
download | mediapointer-dvb-s2-adfdbfcc476847ad0ea239eb72e52d4a7905563f.tar.gz mediapointer-dvb-s2-adfdbfcc476847ad0ea239eb72e52d4a7905563f.tar.bz2 |
mxl5007t: remove function mxl5007t_check_rf_input_power
From: Michael Krufky <mkrufky@linuxtv.org>
This function does not work properly and is not necessary - remove it for now.
Priority: normal
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Diffstat (limited to 'linux/drivers/media/common')
-rw-r--r-- | linux/drivers/media/common/tuners/mxl5007t.c | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/linux/drivers/media/common/tuners/mxl5007t.c b/linux/drivers/media/common/tuners/mxl5007t.c index 5d14eb334..202b5cb8f 100644 --- a/linux/drivers/media/common/tuners/mxl5007t.c +++ b/linux/drivers/media/common/tuners/mxl5007t.c @@ -582,36 +582,12 @@ fail: return ret; } -static int mxl5007t_check_rf_input_power(struct mxl5007t_state *state, - s32 *rf_input_level) -{ - u8 d1, d2; - int ret; - - ret = mxl5007t_read_reg(state, 0xb7, &d1); - if (mxl_fail(ret)) - goto fail; - - ret = mxl5007t_read_reg(state, 0xbf, &d2); - if (mxl_fail(ret)) - goto fail; - - d2 = d2 >> 4; - if (d2 > 7) - d2 += 0xf0; - - *rf_input_level = (s32)(d1 + d2 - 113); -fail: - return ret; -} - /* ------------------------------------------------------------------------- */ static int mxl5007t_get_status(struct dvb_frontend *fe, u32 *status) { struct mxl5007t_state *state = fe->tuner_priv; int rf_locked, ref_locked; - s32 rf_input_level = 0; int ret; if (fe->ops.i2c_gate_ctrl) @@ -622,11 +598,6 @@ static int mxl5007t_get_status(struct dvb_frontend *fe, u32 *status) goto fail; mxl_debug("%s%s", rf_locked ? "rf locked " : "", ref_locked ? "ref locked" : ""); - - ret = mxl5007t_check_rf_input_power(state, &rf_input_level); - if (mxl_fail(ret)) - goto fail; - mxl_debug("rf input power: %d", rf_input_level); fail: if (fe->ops.i2c_gate_ctrl) fe->ops.i2c_gate_ctrl(fe, 0); |