summaryrefslogtreecommitdiff
path: root/drivers/media/dvb/frontends/rtl2830_priv.h
diff options
context:
space:
mode:
authorAntti Palosaari <crope@iki.fi>2012-01-21 22:40:58 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2012-02-28 18:44:25 -0300
commita8567cf22e0efb9faafa6cf33b607ca5aee3c2fa (patch)
tree158208995684ed035053db50970530b3f8c47299 /drivers/media/dvb/frontends/rtl2830_priv.h
parent9935eea5ac300b84036192af1bd98940a64650de (diff)
[media] rtl2830: prevent .read_status() when sleeping
Hardware is not accessible when device is sleeping. Preventing such IOCTLs when sleep should be job of DVB CORE... Signed-off-by: Antti Palosaari <crope@iki.fi> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/dvb/frontends/rtl2830_priv.h')
-rw-r--r--drivers/media/dvb/frontends/rtl2830_priv.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/media/dvb/frontends/rtl2830_priv.h b/drivers/media/dvb/frontends/rtl2830_priv.h
index 49de01dd5e83..4a464761b5b8 100644
--- a/drivers/media/dvb/frontends/rtl2830_priv.h
+++ b/drivers/media/dvb/frontends/rtl2830_priv.h
@@ -43,6 +43,8 @@ struct rtl2830_priv {
struct rtl2830_config cfg;
struct i2c_adapter tuner_i2c_adapter;
+ bool sleeping;
+
u8 page; /* active register page */
};