media: atomisp: ov2680: Drop v4l2_find_nearest_size() call from set_fmt()
authorHans de Goede <hdegoede@redhat.com>
Fri, 13 Jan 2023 15:01:40 +0000 (16:01 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Wed, 8 Feb 2023 07:24:34 +0000 (08:24 +0100)
commitf4ed8e3ba64a5cef32846e63c59897354bcb6d50
tree72c1f2116304daf1e2425830b12be394a2c715ce
parenta6fc86ed57a108cdc5078d93b17bcf56c234f94c
media: atomisp: ov2680: Drop v4l2_find_nearest_size() call from set_fmt()

Since we now calculate timings baded on the desired width and height,
any width and height are valid as long as they don't exceed the sensor's
dimensions.

Drop the v4l2_find_nearest_size() call and instead clamp the requested
width and height.

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-ov2680.c