media: atomisp: ov2722: Don't take the input_lock for try_fmt calls.
authorHans de Goede <hdegoede@redhat.com>
Sat, 3 Dec 2022 19:44:00 +0000 (20:44 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Wed, 8 Feb 2023 07:24:35 +0000 (08:24 +0100)
commit4272fd7ae69aef86aa4c9f7d49a9d15beb50547e
treecdeaeee2a56cea233706c3578db07a98708dc215
parentaec221279a2934de5fbfb8d553fcedb522772d8f
media: atomisp: ov2722: Don't take the input_lock for try_fmt calls.

On ov2722_set_fmt() calls with format->which == V4L2_SUBDEV_FORMAT_TRY,
ov2722_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@kernel.org>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/staging/media/atomisp/i2c/atomisp-ov2722.c