OSDN Git Service

media: atomisp-mt9m114: use v4l2_find_nearest_size()
authorMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Thu, 4 Nov 2021 14:29:34 +0000 (14:29 +0000)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Mon, 15 Nov 2021 08:11:48 +0000 (08:11 +0000)
commit8cc0f5cfd543750b82895616f139d252021761fe
tree3440279a6f8c68d4ca3fb8dea9cbfb76df45fa11
parentc286a3a0286bf70590720541b8408dbc3cd930a5
media: atomisp-mt9m114: 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-mt9m114.c