]> git.baikalelectronics.ru Git - kernel.git/commit
media: atomisp-ov2722: use v4l2_find_nearest_size()
authorMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Thu, 4 Nov 2021 13:17:50 +0000 (13:17 +0000)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Mon, 15 Nov 2021 08:11:47 +0000 (08:11 +0000)
commit061e466af71e1c904c18eff1841173b3bc878181
tree987afe0b262080bea37ceb71f53b9a34236d829a
parentf10793f3924af32489a2270abf268971a82b9c22
media: atomisp-ov2722: use v4l2_find_nearest_size()

Instead of reinventing the wheel, use v4l2_find_nearest_size()
in order to get the closest resolution.

This should address a bug where the wrong resolution was
selected.

Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/staging/media/atomisp/i2c/atomisp-ov2722.c
drivers/staging/media/atomisp/i2c/ov2722.h