Skip to content

Commit 0d5615d

Browse files
Hans Verkuilmchehab
authored andcommitted
media: v4l2-ioctl: delete unused v4l2_disable_ioctl_locking
The last user of this 'feature' was the gspca driver. Now that that driver has been converted to vb2 we can delete this code. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Reviewed-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
1 parent 8a7c559 commit 0d5615d

2 files changed

Lines changed: 0 additions & 17 deletions

File tree

‎drivers/media/v4l2-core/v4l2-ioctl.c‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2666,8 +2666,6 @@ struct mutex *v4l2_ioctl_get_lock(struct video_device *vdev, unsigned cmd)
26662666
{
26672667
if (_IOC_NR(cmd) >= V4L2_IOCTLS)
26682668
return vdev->lock;
2669-
if (test_bit(_IOC_NR(cmd), vdev->disable_locking))
2670-
return NULL;
26712669
if (vdev->queue && vdev->queue->lock &&
26722670
(v4l2_ioctls[_IOC_NR(cmd)].flags & INFO_FL_QUEUE))
26732671
return vdev->queue->lock;

‎include/media/v4l2-dev.h‎

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,6 @@ struct v4l2_file_operations {
238238
* @ioctl_ops: pointer to &struct v4l2_ioctl_ops with ioctl callbacks
239239
*
240240
* @valid_ioctls: bitmap with the valid ioctls for this device
241-
* @disable_locking: bitmap with the ioctls that don't require locking
242241
* @lock: pointer to &struct mutex serialization lock
243242
*
244243
* .. note::
@@ -291,7 +290,6 @@ struct video_device
291290
const struct v4l2_ioctl_ops *ioctl_ops;
292291
DECLARE_BITMAP(valid_ioctls, BASE_VIDIOC_PRIVATE);
293292

294-
DECLARE_BITMAP(disable_locking, BASE_VIDIOC_PRIVATE);
295293
struct mutex *lock;
296294
};
297295

@@ -446,19 +444,6 @@ void video_device_release_empty(struct video_device *vdev);
446444
*/
447445
bool v4l2_is_known_ioctl(unsigned int cmd);
448446

449-
/** v4l2_disable_ioctl_locking - mark that a given command
450-
* shouldn't use core locking
451-
*
452-
* @vdev: pointer to &struct video_device
453-
* @cmd: ioctl command
454-
*/
455-
static inline void v4l2_disable_ioctl_locking(struct video_device *vdev,
456-
unsigned int cmd)
457-
{
458-
if (_IOC_NR(cmd) < BASE_VIDIOC_PRIVATE)
459-
set_bit(_IOC_NR(cmd), vdev->disable_locking);
460-
}
461-
462447
/**
463448
* v4l2_disable_ioctl- mark that a given command isn't implemented.
464449
* shouldn't use core locking

0 commit comments

Comments
 (0)