]> 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)
commitcb34358dc1d98cad91cbe013336d33ccf2c2cd86
tree987afe0b262080bea37ceb71f53b9a34236d829a
parent069a94afd79548c1729007aa497699dc9759a5f2
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