summaryrefslogtreecommitdiff
path: root/drivers/media/dvb-frontends
diff options
context:
space:
mode:
authorDaniel Scheller <d.scheller@gmx.net>2017-07-23 06:13:09 -0400
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2017-08-20 07:11:06 -0400
commit399196ed0643c1067e19bb116e05608d3d5ecff3 (patch)
tree440b0e085f73538e64d427c73349492896fe5a19 /drivers/media/dvb-frontends
parent6a2963d6028e4fcea1136c6117c82d998081efd2 (diff)
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: Daniel Scheller <d.scheller@gmx.net> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/media/dvb-frontends')
-rw-r--r--drivers/media/dvb-frontends/stv0910.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/media/dvb-frontends/stv0910.c b/drivers/media/dvb-frontends/stv0910.c
index 7e8a460449c5..b596ec5f309f 100644
--- a/drivers/media/dvb-frontends/stv0910.c
+++ b/drivers/media/dvb-frontends/stv0910.c
@@ -1321,7 +1321,6 @@ static void read_signal_strength(struct dvb_frontend *fe)
{
struct stv *state = fe->demodulator_priv;
struct dtv_frontend_properties *p = &state->fe.dtv_property_cache;
- s64 strength;
u8 reg[2];
u16 agc;
s32 padc, power = 0;
@@ -1341,10 +1340,8 @@ static void read_signal_strength(struct dvb_frontend *fe)
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].uvalue = strength;
+ p->strength.stat[0].svalue = (padc - agc);
}
static int read_status(struct dvb_frontend *fe, enum fe_status *status)