summaryrefslogtreecommitdiff
path: root/drivers/media/video/pwc/pwc.h
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2011-07-03 11:50:51 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2011-07-27 17:53:45 -0300
commitc11271349ad5d4647e69e511fc481b2dd390efc4 (patch)
treebc9ecda60fb903856dae5e21271e449e203a14bc /drivers/media/video/pwc/pwc.h
parent6c9cac89c009c049a9ad29cdf0f51892410fe751 (diff)
[media] pwc: Allow dqbuf / read to complete while waiting for controls
Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/pwc/pwc.h')
-rw-r--r--drivers/media/video/pwc/pwc.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/media/video/pwc/pwc.h b/drivers/media/video/pwc/pwc.h
index 601a549988b5..e02dbf745155 100644
--- a/drivers/media/video/pwc/pwc.h
+++ b/drivers/media/video/pwc/pwc.h
@@ -200,6 +200,9 @@ struct pwc_device
/* Pointer to our usb_device, may be NULL after unplug */
struct usb_device *udev;
+ /* Protects the setting of udev to NULL by our disconnect handler */
+ struct mutex udevlock;
+
/* type of cam (645, 646, 675, 680, 690, 720, 730, 740, 750) */
int type;
int release; /* release number */