aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/go7007/go7007-priv.h
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2009-09-15 11:07:59 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-09-19 00:13:37 -0300
commitfd9a40da1db372833e1af6397d2f6c94ceff3dad (patch)
treeedd301e5fffb4f62ffa504f917e11443b28eed17 /drivers/staging/go7007/go7007-priv.h
parentV4L/DVB (12858): go7007: whitespacing cleanups (diff)
downloadlinux-dev-fd9a40da1db372833e1af6397d2f6c94ceff3dad.tar.xz
linux-dev-fd9a40da1db372833e1af6397d2f6c94ceff3dad.zip
V4L/DVB (12859): go7007: semaphore -> mutex conversion
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/staging/go7007/go7007-priv.h')
-rw-r--r--drivers/staging/go7007/go7007-priv.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/staging/go7007/go7007-priv.h b/drivers/staging/go7007/go7007-priv.h
index 178d18119faa..ce9307e3e186 100644
--- a/drivers/staging/go7007/go7007-priv.h
+++ b/drivers/staging/go7007/go7007-priv.h
@@ -132,7 +132,7 @@ struct go7007_buffer {
struct go7007_file {
struct go7007 *go;
- struct semaphore lock;
+ struct mutex lock;
int buf_count;
struct go7007_buffer *bufs;
};
@@ -170,7 +170,7 @@ struct go7007 {
int ref_count;
enum { STATUS_INIT, STATUS_ONLINE, STATUS_SHUTDOWN } status;
spinlock_t spinlock;
- struct semaphore hw_lock;
+ struct mutex hw_lock;
int streaming;
int in_use;
int audio_enabled;
@@ -240,7 +240,7 @@ struct go7007 {
unsigned short interrupt_data;
};
-/* All of these must be called with the hpi_lock semaphore held! */
+/* All of these must be called with the hpi_lock mutex held! */
#define go7007_interface_reset(go) \
((go)->hpi_ops->interface_reset(go))
#define go7007_write_interrupt(go, x, y) \