Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Daniel Scheller and committed by
Mauro Carvalho Chehab
399196ed 6a2963d6

+1 -4
+1 -4
drivers/media/dvb-frontends/stv0910.c
··· 1321 1321 { 1322 1322 struct stv *state = fe->demodulator_priv; 1323 1323 struct dtv_frontend_properties *p = &state->fe.dtv_property_cache; 1324 - s64 strength; 1325 1324 u8 reg[2]; 1326 1325 u16 agc; 1327 1326 s32 padc, power = 0; ··· 1340 1341 1341 1342 padc = table_lookup(padc_lookup, ARRAY_SIZE(padc_lookup), power) + 352; 1342 1343 1343 - strength = (padc - agc); 1344 - 1345 1344 p->strength.stat[0].scale = FE_SCALE_DECIBEL; 1346 - p->strength.stat[0].uvalue = strength; 1345 + p->strength.stat[0].svalue = (padc - agc); 1347 1346 } 1348 1347 1349 1348 static int read_status(struct dvb_frontend *fe, enum fe_status *status)