summaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb-frontends/rtl2830_priv.h
diff options
context:
space:
mode:
authorAntti Palosaari <crope@iki.fi>2014-12-09 20:14:41 +0100
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>2015-02-03 18:54:59 +0100
commitfd4cfa8bb1bc0cdd385f33303b5058674ea8e24c (patch)
treefdd1c1a9e2dfb1a70f499e6f3e6fe1bfa16cbd72 /drivers/media/dvb-frontends/rtl2830_priv.h
parent[media] rtl28xxu: add support for RTL2831U/RTL2830 PID filter (diff)
downloadlinux-fd4cfa8bb1bc0cdd385f33303b5058674ea8e24c.tar.xz
linux-fd4cfa8bb1bc0cdd385f33303b5058674ea8e24c.zip
[media] rtl2830: implement own I2C locking
Own I2C locking is needed due to two special reasons: 1) Chips uses multiple register pages/banks on single I2C slave. Page is changed via I2C register access. 2) Chip offers muxed/gated I2C adapter for tuner. Gate/mux is controlled by I2C register access. Due to these reasons, I2C locking did not fit very well. Signed-off-by: Antti Palosaari <crope@iki.fi> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'drivers/media/dvb-frontends/rtl2830_priv.h')
-rw-r--r--drivers/media/dvb-frontends/rtl2830_priv.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/media/dvb-frontends/rtl2830_priv.h b/drivers/media/dvb-frontends/rtl2830_priv.h
index 293188924f51..517758ab687a 100644
--- a/drivers/media/dvb-frontends/rtl2830_priv.h
+++ b/drivers/media/dvb-frontends/rtl2830_priv.h
@@ -30,6 +30,7 @@ struct rtl2830_dev {
struct i2c_adapter *adapter;
struct dvb_frontend fe;
bool sleeping;
+ struct mutex i2c_mutex;
u8 page; /* active register page */
unsigned long filters;
struct delayed_work stat_work;