OSDN Git Service

media: atomisp: ov2680: Drop struct ov2680_resolution / ov2680_res_preview
authorHans de Goede <hdegoede@redhat.com>
Fri, 13 Jan 2023 15:46:40 +0000 (16:46 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Wed, 8 Feb 2023 07:24:34 +0000 (08:24 +0100)
commitef6504afd046da6afe7c0f4b36df3654268e97e8
tree34a7ce81088f4ff7d8a8cc2c514d80e8355444b0
parentf4ed8e3ba64a5cef32846e63c59897354bcb6d50
media: atomisp: ov2680: Drop struct ov2680_resolution / ov2680_res_preview

Drop struct ov2680_resolution and the ov2680_res_preview[] array,
this is now only used in ov2680_enum_frame_size() and only
the width + height are used there.

Replace this with a new struct v4l2_frmsize_discrete ov2680_frame_sizes[]
array.

No functional changes.

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
drivers/staging/media/atomisp/i2c/ov2680.h