media: atomisp: Use video_dev.lock for ioctl locking
authorHans de Goede <hdegoede@redhat.com>
Fri, 2 Sep 2022 21:56:48 +0000 (23:56 +0200)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Sat, 24 Sep 2022 08:10:14 +0000 (10:10 +0200)
commitcf223056fb29772208e8612e631eb0ef9e2c1a3a
tree507722db83f22a9db284332a51a03b2bea396303
parentb88e0ee7b081930e0e2f65a77696695c44a4a4b2
media: atomisp: Use video_dev.lock for ioctl locking

Set video_dev.lock to point to isp->mutex so that the core does
the locking surroundig ioctls for us and drop all the now no longer
necessary (and conflicting) locking from the ioctl handling code.

Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/staging/media/atomisp/pci/atomisp_ioctl.c
drivers/staging/media/atomisp/pci/atomisp_v4l2.c