aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb/dvb-core/dvb_frontend.h
diff options
context:
space:
mode:
authorMatthias Kaehlcke <matthias.kaehlcke@gmail.com>2007-07-30 14:58:10 -0300
committerMauro Carvalho Chehab <mchehab@infradead.org>2007-10-09 22:03:34 -0300
commit03b7612336560c6799852acaaaeac70e1f00e483 (patch)
treedad10f437837c1cb1f962e3577f54923f9faf21f /drivers/media/dvb/dvb-core/dvb_frontend.h
parent667c7bc0aff18288186f1223784b57f77be7d81b (diff)
downloadkernel_samsung_smdk4412-03b7612336560c6799852acaaaeac70e1f00e483.zip
kernel_samsung_smdk4412-03b7612336560c6799852acaaaeac70e1f00e483.tar.gz
kernel_samsung_smdk4412-03b7612336560c6799852acaaaeac70e1f00e483.tar.bz2
V4L/DVB (5946): Use mutex instead of semaphore in the DVB frontend tuning interface
The DVB frontend tuning interface uses a semaphore as mutex. Use the mutex API instead of the (binary) semaphore. Signed-off-by: Matthias Kaehlcke <matthias.kaehlcke@gmail.com> Signed-off-by: Michael Krufky <mkrufky@linuxtv.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/dvb/dvb-core/dvb_frontend.h')
-rw-r--r--drivers/media/dvb/dvb-core/dvb_frontend.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/media/dvb/dvb-core/dvb_frontend.h b/drivers/media/dvb/dvb-core/dvb_frontend.h
index a770a87..f95de63 100644
--- a/drivers/media/dvb/dvb-core/dvb_frontend.h
+++ b/drivers/media/dvb/dvb-core/dvb_frontend.h
@@ -35,6 +35,7 @@
#include <linux/module.h>
#include <linux/errno.h>
#include <linux/delay.h>
+#include <linux/mutex.h>
#include <linux/dvb/frontend.h>
@@ -142,7 +143,7 @@ struct dvb_fe_events {
int eventr;
int overflow;
wait_queue_head_t wait_queue;
- struct semaphore sem;
+ struct mutex mtx;
};
struct dvb_frontend {