]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/blobdiff - drivers/media/video/em28xx/em28xx.h
V4L/DVB (3318b): sem2mutex: drivers/media/, #2
[mirror_ubuntu-jammy-kernel.git] / drivers / media / video / em28xx / em28xx.h
index ddf06c520e990002b3b41ec7d02cfe8830267529..4e2fe62b7350c248120e3714bdc0097db5fb4659 100644 (file)
@@ -27,6 +27,7 @@
 
 #include <linux/videodev.h>
 #include <linux/i2c.h>
+#include <linux/mutex.h>
 #include <media/ir-kbd-i2c.h>
 
 /* Boards supported by driver */
@@ -260,7 +261,7 @@ struct em28xx {
        enum em28xx_stream_state stream;
        enum em28xx_io_method io;
        /* locks */
-       struct semaphore lock, fileop_lock;
+       struct mutex lock, fileop_lock;
        spinlock_t queue_lock;
        struct list_head inqueue, outqueue;
        wait_queue_head_t open, wait_frame, wait_stream;