[media] rtl2830: move statistics to read_status()
Move statistics polling to read_status() in order to avoid use of kernel work. Also replace home made sign extension used for statistics with kernel sign_extend32(). Signed-off-by: Antti Palosaari <crope@iki.fi> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
This commit is contained in:

committed by
Mauro Carvalho Chehab

parent
95e7cdb7db
commit
4a7e445b1b
@@ -24,6 +24,7 @@
|
||||
#include <linux/i2c-mux.h>
|
||||
#include <linux/math64.h>
|
||||
#include <linux/regmap.h>
|
||||
#include <linux/bitops.h>
|
||||
|
||||
struct rtl2830_dev {
|
||||
struct rtl2830_platform_data *pdata;
|
||||
@@ -33,7 +34,6 @@ struct rtl2830_dev {
|
||||
struct dvb_frontend fe;
|
||||
bool sleeping;
|
||||
unsigned long filters;
|
||||
struct delayed_work stat_work;
|
||||
enum fe_status fe_status;
|
||||
u64 post_bit_error_prev; /* for old DVBv3 read_ber() calculation */
|
||||
u64 post_bit_error;
|
||||
|
Reference in New Issue
Block a user