]> git.baikalelectronics.ru Git - kernel.git/commit
media: atomisp-gc2235: use v4l2_find_nearest_size()
authorMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Thu, 4 Nov 2021 13:57:35 +0000 (13:57 +0000)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Mon, 15 Nov 2021 08:11:48 +0000 (08:11 +0000)
commitb77508d69cbec05df974a35feafd8ea772f09cb0
treeb7ad946ef76734785f6f5c3448ff7b935fb0fc54
parent51a504000f932b30eacd3c6da8385934a35c73db
media: atomisp-gc2235: 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-gc2235.c
drivers/staging/media/atomisp/i2c/gc2235.h