[media] mn88473: refactor and fix statistics
authorAntti Palosaari <crope@iki.fi>
Sun, 13 Nov 2016 07:25:54 +0000 (05:25 -0200)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Tue, 22 Nov 2016 18:04:30 +0000 (16:04 -0200)
commit69ace6ee3e3d088c6c8bd4aab42001fc6ba9d701
treeb9b23b732936b4ea9e108b531af4273688ed6a85
parent61393b0732fadc1efb2682c92062a54ff9f8fe0b
[media] mn88473: refactor and fix statistics

Remove DVB-T2 BER as it does not work at all and I didn't find
how to fix.

Fix DVB-T and DVB-C BER. It seems to return new some realistic
looking values.

Use (1 << 24) base for CNR calculations to keep it in line with
dvb logarithm functions.

Move all statistic logic to mn88473_read_status() function.

Use regmap_bulk_read() for reading multiple registers as a one go.

Many more and less minor changes.

Cc: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/dvb-frontends/mn88473.c
drivers/media/dvb-frontends/mn88473_priv.h