media: atomisp-ov2680: Don't take the input_lock for try_fmt calls.
authorHans de Goede <hdegoede@redhat.com>
Sat, 13 Aug 2022 08:30:34 +0000 (10:30 +0200)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Sat, 24 Sep 2022 07:32:27 +0000 (09:32 +0200)
commit44a11920ac39fe7fe5191d72c0822ff2a4c3b83d
tree43411e426a0716baad83cfe91a7941f9a8c933eb
parentadea153b4f6537f367fe77abada263fde8a1f7b6
media: atomisp-ov2680: Don't take the input_lock for try_fmt calls.

On ov2680_set_fmt() calls with format->which == V4L2_SUBDEV_FORMAT_TRY,
ov2680_set_fmt() does not talk to the sensor, so there is no need to
lock the dev->input_lock mutex in this case.

Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/staging/media/atomisp/i2c/atomisp-ov2680.c