diff options
| author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2006-03-23 23:44:19 -0500 |
|---|---|---|
| committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2006-03-23 23:44:19 -0500 |
| commit | 1ebbe2b20091d306453a5cf480a87e6cd28ae76f (patch) | |
| tree | f5cd7a0fa69b8b1938cb5a0faed2e7b0628072a5 /drivers/usb/media/w9968cf.h | |
| parent | ac58c9059da8886b5e8cde012a80266b18ca146e (diff) | |
| parent | 674a396c6d2ba0341ebdd7c1c9950f32f018e2dd (diff) | |
Merge branch 'linus'
Diffstat (limited to 'drivers/usb/media/w9968cf.h')
| -rw-r--r-- | drivers/usb/media/w9968cf.h | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/drivers/usb/media/w9968cf.h b/drivers/usb/media/w9968cf.h index 47a6ff794171..a87be719a281 100644 --- a/drivers/usb/media/w9968cf.h +++ b/drivers/usb/media/w9968cf.h | |||
| @@ -32,7 +32,7 @@ | |||
| 32 | #include <linux/param.h> | 32 | #include <linux/param.h> |
| 33 | #include <linux/types.h> | 33 | #include <linux/types.h> |
| 34 | #include <linux/rwsem.h> | 34 | #include <linux/rwsem.h> |
| 35 | #include <asm/semaphore.h> | 35 | #include <linux/mutex.h> |
| 36 | 36 | ||
| 37 | #include <media/ovcamchip.h> | 37 | #include <media/ovcamchip.h> |
| 38 | 38 | ||
| @@ -194,14 +194,6 @@ enum w9968cf_vpp_flag { | |||
| 194 | VPP_UYVY_TO_RGBX = 0x08, | 194 | VPP_UYVY_TO_RGBX = 0x08, |
| 195 | }; | 195 | }; |
| 196 | 196 | ||
| 197 | static struct w9968cf_vpp_t* w9968cf_vpp; | ||
| 198 | static DECLARE_WAIT_QUEUE_HEAD(w9968cf_vppmod_wait); | ||
| 199 | |||
| 200 | static LIST_HEAD(w9968cf_dev_list); /* head of V4L registered cameras list */ | ||
| 201 | static DECLARE_MUTEX(w9968cf_devlist_sem); /* semaphore for list traversal */ | ||
| 202 | |||
| 203 | static DECLARE_RWSEM(w9968cf_disconnect); /* prevent races with open() */ | ||
| 204 | |||
| 205 | /* Main device driver structure */ | 197 | /* Main device driver structure */ |
| 206 | struct w9968cf_device { | 198 | struct w9968cf_device { |
| 207 | struct device dev; /* device structure */ | 199 | struct device dev; /* device structure */ |
| @@ -277,8 +269,8 @@ struct w9968cf_device { | |||
| 277 | struct i2c_client* sensor_client; | 269 | struct i2c_client* sensor_client; |
| 278 | 270 | ||
| 279 | /* Locks */ | 271 | /* Locks */ |
| 280 | struct semaphore dev_sem, /* for probe, disconnect,open and close */ | 272 | struct mutex dev_mutex, /* for probe, disconnect,open and close */ |
| 281 | fileop_sem; /* for read and ioctl */ | 273 | fileop_mutex; /* for read and ioctl */ |
| 282 | spinlock_t urb_lock, /* for submit_urb() and unlink_urb() */ | 274 | spinlock_t urb_lock, /* for submit_urb() and unlink_urb() */ |
| 283 | flist_lock; /* for requested frame list accesses */ | 275 | flist_lock; /* for requested frame list accesses */ |
| 284 | wait_queue_head_t open, wait_queue; | 276 | wait_queue_head_t open, wait_queue; |
