diff options
author | Matthias Kaehlcke | 2007-07-30 19:58:10 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab | 2007-10-10 03:03:34 +0200 |
commit | 03b7612336560c6799852acaaaeac70e1f00e483 (patch) | |
tree | dad10f437837c1cb1f962e3577f54923f9faf21f /drivers/media/dvb/dvb-core/dvb_frontend.h | |
parent | V4L/DVB (5942): Usb/vp7045.c: ARRAY_SIZE() (diff) | |
download | kernel-qcow2-linux-03b7612336560c6799852acaaaeac70e1f00e483.tar.gz kernel-qcow2-linux-03b7612336560c6799852acaaaeac70e1f00e483.tar.xz kernel-qcow2-linux-03b7612336560c6799852acaaaeac70e1f00e483.zip |
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.h | 3 |
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 a770a87b9a93..f95de63d0e24 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 { |