Commit 399196ed authored by Daniel Scheller's avatar Daniel Scheller Committed by Mauro Carvalho Chehab

media: dvb-frontends/stv0910: fix STR assignment, remove unneeded var

According to the documentation, FE_SCALE_DECIBEL values should be assigned
to .svalue and not .uvalue, so let's do this. While at it, remove the
unneeded strength var from read_signal_strength().
Signed-off-by: default avatarDaniel Scheller <d.scheller@gmx.net>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
parent 6a2963d6
...@@ -1321,7 +1321,6 @@ static void read_signal_strength(struct dvb_frontend *fe) ...@@ -1321,7 +1321,6 @@ static void read_signal_strength(struct dvb_frontend *fe)
{ {
struct stv *state = fe->demodulator_priv; struct stv *state = fe->demodulator_priv;
struct dtv_frontend_properties *p = &state->fe.dtv_property_cache; struct dtv_frontend_properties *p = &state->fe.dtv_property_cache;
s64 strength;
u8 reg[2]; u8 reg[2];
u16 agc; u16 agc;
s32 padc, power = 0; s32 padc, power = 0;
...@@ -1341,10 +1340,8 @@ static void read_signal_strength(struct dvb_frontend *fe) ...@@ -1341,10 +1340,8 @@ static void read_signal_strength(struct dvb_frontend *fe)
padc = table_lookup(padc_lookup, ARRAY_SIZE(padc_lookup), power) + 352; padc = table_lookup(padc_lookup, ARRAY_SIZE(padc_lookup), power) + 352;
strength = (padc - agc);
p->strength.stat[0].scale = FE_SCALE_DECIBEL; p->strength.stat[0].scale = FE_SCALE_DECIBEL;
p->strength.stat[0].uvalue = strength; p->strength.stat[0].svalue = (padc - agc);
} }
static int read_status(struct dvb_frontend *fe, enum fe_status *status) static int read_status(struct dvb_frontend *fe, enum fe_status *status)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment