aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb/frontends/tda18271-priv.h
diff options
context:
space:
mode:
authorMichael Krufky <mkrufky@linuxtv.org>2008-01-06 15:31:35 -0300
committerMauro Carvalho Chehab <mchehab@infradead.org>2008-01-25 19:04:43 -0200
commit8d316bf54b2a1965f9460d0ad9d80850d2c7afb3 (patch)
tree9ab21bf8093edc7f410870da484547332d290069 /drivers/media/dvb/frontends/tda18271-priv.h
parentV4L/DVB (6978): tda18271: store frequency and bandwidth after successful tune (diff)
downloadlinux-dev-8d316bf54b2a1965f9460d0ad9d80850d2c7afb3.tar.xz
linux-dev-8d316bf54b2a1965f9460d0ad9d80850d2c7afb3.zip
V4L/DVB (6979): tda18271: use a mutex to protect state in critical sections
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to '')
-rw-r--r--drivers/media/dvb/frontends/tda18271-priv.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/media/dvb/frontends/tda18271-priv.h b/drivers/media/dvb/frontends/tda18271-priv.h
index b4d1ab770ca2..af89cfab0066 100644
--- a/drivers/media/dvb/frontends/tda18271-priv.h
+++ b/drivers/media/dvb/frontends/tda18271-priv.h
@@ -23,6 +23,7 @@
#include <linux/kernel.h>
#include <linux/types.h>
+#include <linux/mutex.h>
#include "tda18271.h"
#define R_ID 0x00 /* ID byte */
@@ -112,6 +113,8 @@ struct tda18271_priv {
struct tda18271_std_map std;
struct tda18271_rf_tracking_filter_cal rf_cal_state[8];
+ struct mutex lock;
+
u32 frequency;
u32 bandwidth;
};