summaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb/frontends/drxk_hard.h
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2012-06-29 14:43:32 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2012-06-29 19:04:21 -0300
commit20bfe7ae089076b0af72a6d67f0298621ae90a9d (patch)
tree27c5aab38bcc6c34917098004055a0db70b54142 /drivers/media/dvb/frontends/drxk_hard.h
parent2a5f6720ff45e7545c3058bc6bfdb498247b4f5c (diff)
[media] drxk: Lock I2C bus during firmware load
Don't allow other devices at the same I2C bus to use it during firmware load, in order to prevent using the device while it is not on a sane state. Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/dvb/frontends/drxk_hard.h')
-rw-r--r--drivers/media/dvb/frontends/drxk_hard.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/media/dvb/frontends/drxk_hard.h b/drivers/media/dvb/frontends/drxk_hard.h
index 36677cdc01d..c35ab2b3779 100644
--- a/drivers/media/dvb/frontends/drxk_hard.h
+++ b/drivers/media/dvb/frontends/drxk_hard.h
@@ -325,6 +325,9 @@ struct drxk_state {
enum DRXPowerMode m_currentPowerMode;
+ /* when true, avoids other devices to use the I2C bus */
+ bool drxk_i2c_exclusive_lock;
+
/*
* Configurable parameters at the driver. They stores the values found
* at struct drxk_config.