diff options
author | Hans de Goede <hdegoede@redhat.com> | 2023-08-03 12:33:33 +0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@kernel.org> | 2023-08-14 21:27:57 +0300 |
commit | 4007015e604f680999c764be84b84aea7319fb0b (patch) | |
tree | b42ee9c5f0d19eea6247927484ebc200640344e1 /drivers/media/i2c/ov08x40.c | |
parent | df3ecab8d7c5714b08544ef4ea8ac95e6a5743a3 (diff) | |
download | linux-4007015e604f680999c764be84b84aea7319fb0b.tar.xz |
media: ov2680: Fix ov2680_enum_frame_interval()
Fix and simplify ov2680_enum_frame_interval(), the index is not
an index into ov2680_mode_data[], so using OV2680_MODE_MAX is wrong.
Instead it is an index indexing the different framerates for
the resolution specified in fie->width, fie->height.
Note validating fie->which is not necessary this is already done
by the v4l2-core.
Acked-by: Rui Miguel Silva <rmfrfs@gmail.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
Diffstat (limited to 'drivers/media/i2c/ov08x40.c')
0 files changed, 0 insertions, 0 deletions