diff options
author | Michael Krufky <mkrufky@linuxtv.org> | 2008-01-06 13:31:35 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-01-25 16:04:43 -0500 |
commit | 8d316bf54b2a1965f9460d0ad9d80850d2c7afb3 (patch) | |
tree | 9ab21bf8093edc7f410870da484547332d290069 /drivers/media/dvb/frontends/tda18271-priv.h | |
parent | ccbac9bb174db457181f5f58fecf9cbc3020ea1d (diff) |
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 'drivers/media/dvb/frontends/tda18271-priv.h')
-rw-r--r-- | drivers/media/dvb/frontends/tda18271-priv.h | 3 |
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 @@ | |||
23 | 23 | ||
24 | #include <linux/kernel.h> | 24 | #include <linux/kernel.h> |
25 | #include <linux/types.h> | 25 | #include <linux/types.h> |
26 | #include <linux/mutex.h> | ||
26 | #include "tda18271.h" | 27 | #include "tda18271.h" |
27 | 28 | ||
28 | #define R_ID 0x00 /* ID byte */ | 29 | #define R_ID 0x00 /* ID byte */ |
@@ -112,6 +113,8 @@ struct tda18271_priv { | |||
112 | struct tda18271_std_map std; | 113 | struct tda18271_std_map std; |
113 | struct tda18271_rf_tracking_filter_cal rf_cal_state[8]; | 114 | struct tda18271_rf_tracking_filter_cal rf_cal_state[8]; |
114 | 115 | ||
116 | struct mutex lock; | ||
117 | |||
115 | u32 frequency; | 118 | u32 frequency; |
116 | u32 bandwidth; | 119 | u32 bandwidth; |
117 | }; | 120 | }; |