@@ -787,15 +787,6 @@ static void au8522_get_stats(struct dvb_frontend *fe, enum fe_status status)
c->block_error.stat[0].scale = FE_SCALE_COUNTER;
c->block_error.stat[0].uvalue = state->ucblocks;
}
-static int au8522_read_signal_strength(struct dvb_frontend *fe,
- u16 *signal_strength)
-{
- struct au8522_state *state = fe->demodulator_priv;
-
- *signal_strength = state->strength;
-
- return 0;
-}
static int au8522_read_status(struct dvb_frontend *fe, enum fe_status *status)
{
@@ -857,6 +848,16 @@ static int au8522_read_status(struct dvb_frontend *fe, enum fe_status *status)
return 0;
}
+static int au8522_read_signal_strength(struct dvb_frontend *fe,
+ u16 *signal_strength)
+{
+ struct au8522_state *state = fe->demodulator_priv;
+
+ *signal_strength = state->strength;
+
+ return 0;
+}
+
static int au8522_read_ucblocks(struct dvb_frontend *fe, u32 *ucblocks)
{
struct au8522_state *state = fe->demodulator_priv;
@@ -866,16 +867,6 @@ static int au8522_read_ucblocks(struct dvb_frontend *fe, u32 *ucblocks)
return 0;
}
-static int au8522_read_ber(struct dvb_frontend *fe, u32 *ber)
-{
- struct au8522_state *state = fe->demodulator_priv;
-
- /* FIXME: This is so wrong! */
- *ber = state->ucblocks;
-
- return 0;
-}
-
static int au8522_get_frontend(struct dvb_frontend *fe,
struct dtv_frontend_properties *c)
{
@@ -987,7 +978,6 @@ static struct dvb_frontend_ops au8522_ops = {
.get_frontend = au8522_get_frontend,
.get_tune_settings = au8522_get_tune_settings,
.read_status = au8522_read_status,
- .read_ber = au8522_read_ber,
.read_signal_strength = au8522_read_signal_strength,
.read_snr = au8522_read_snr,
.read_ucblocks = au8522_read_ucblocks,
There's no code on au8522 to get the bit error rate. Remove the fake function that were returning the number of uncorrected error blocks as if they were ber. Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com> --- drivers/media/dvb-frontends/au8522_dig.c | 30 ++++++++++-------------------- 1 file changed, 10 insertions(+), 20 deletions(-)