diff options
author | Michael Krufky <mkrufky@linuxtv.org> | 2009-02-28 17:34:25 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-03-30 11:43:03 -0400 |
commit | b1ff363bfe279c41bd4e43886d47c810459a244e (patch) | |
tree | 69582fbbc9c5c3abda7a17ff2a09b5db2af5ae8b | |
parent | 69e233332432551e10d64492e60d84fee7657bb6 (diff) |
V4L/DVB (10780): mxl5007t: remove function mxl5007t_check_rf_input_power
This function does not work properly and is not necessary - remove it for now.
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rw-r--r-- | drivers/media/common/tuners/mxl5007t.c | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/drivers/media/common/tuners/mxl5007t.c b/drivers/media/common/tuners/mxl5007t.c index cbcb19b6e09d..e2a2cf2d31fc 100644 --- a/drivers/media/common/tuners/mxl5007t.c +++ b/drivers/media/common/tuners/mxl5007t.c | |||
@@ -577,36 +577,12 @@ fail: | |||
577 | return ret; | 577 | return ret; |
578 | } | 578 | } |
579 | 579 | ||
580 | static int mxl5007t_check_rf_input_power(struct mxl5007t_state *state, | ||
581 | s32 *rf_input_level) | ||
582 | { | ||
583 | u8 d1, d2; | ||
584 | int ret; | ||
585 | |||
586 | ret = mxl5007t_read_reg(state, 0xb7, &d1); | ||
587 | if (mxl_fail(ret)) | ||
588 | goto fail; | ||
589 | |||
590 | ret = mxl5007t_read_reg(state, 0xbf, &d2); | ||
591 | if (mxl_fail(ret)) | ||
592 | goto fail; | ||
593 | |||
594 | d2 = d2 >> 4; | ||
595 | if (d2 > 7) | ||
596 | d2 += 0xf0; | ||
597 | |||
598 | *rf_input_level = (s32)(d1 + d2 - 113); | ||
599 | fail: | ||
600 | return ret; | ||
601 | } | ||
602 | |||
603 | /* ------------------------------------------------------------------------- */ | 580 | /* ------------------------------------------------------------------------- */ |
604 | 581 | ||
605 | static int mxl5007t_get_status(struct dvb_frontend *fe, u32 *status) | 582 | static int mxl5007t_get_status(struct dvb_frontend *fe, u32 *status) |
606 | { | 583 | { |
607 | struct mxl5007t_state *state = fe->tuner_priv; | 584 | struct mxl5007t_state *state = fe->tuner_priv; |
608 | int rf_locked, ref_locked; | 585 | int rf_locked, ref_locked; |
609 | s32 rf_input_level = 0; | ||
610 | int ret; | 586 | int ret; |
611 | 587 | ||
612 | if (fe->ops.i2c_gate_ctrl) | 588 | if (fe->ops.i2c_gate_ctrl) |
@@ -617,11 +593,6 @@ static int mxl5007t_get_status(struct dvb_frontend *fe, u32 *status) | |||
617 | goto fail; | 593 | goto fail; |
618 | mxl_debug("%s%s", rf_locked ? "rf locked " : "", | 594 | mxl_debug("%s%s", rf_locked ? "rf locked " : "", |
619 | ref_locked ? "ref locked" : ""); | 595 | ref_locked ? "ref locked" : ""); |
620 | |||
621 | ret = mxl5007t_check_rf_input_power(state, &rf_input_level); | ||
622 | if (mxl_fail(ret)) | ||
623 | goto fail; | ||
624 | mxl_debug("rf input power: %d", rf_input_level); | ||
625 | fail: | 596 | fail: |
626 | if (fe->ops.i2c_gate_ctrl) | 597 | if (fe->ops.i2c_gate_ctrl) |
627 | fe->ops.i2c_gate_ctrl(fe, 0); | 598 | fe->ops.i2c_gate_ctrl(fe, 0); |