media: i2c: imx219: Fix a bug in imx219_enum_frame_size
authorDafna Hirschfeld <dafna.hirschfeld@collabora.com>
Tue, 31 Mar 2020 18:06:30 +0000 (20:06 +0200)
committerpopcornmix <popcornmix@gmail.com>
Wed, 1 Jul 2020 15:33:48 +0000 (16:33 +0100)
commitee71ffbca19ba702215fc13ef8d6ed8a5b3abd5c
tree8cbed009d04fd1a07101efdd31101f19a6bfd70d
parentd63b24722d08f8d6668f0c3115a994020d3fbd17
media: i2c: imx219: Fix a bug in imx219_enum_frame_size

https://patchwork.linuxtv.org/patch/62740/

When enumerating the frame sizes, the value sent to
imx219_get_format_code should be fse->code
(the code from the ioctl) and not imx219->fmt.code
which is the code set currently in the driver.

Fixes: 22da1d56e ("media: i2c: imx219: Add support for RAW8 bit bayer format")

Signed-off-by: Dafna Hirschfeld <dafna.hirschfeld@collabora.com>
Reviewed-by: Helen Koike <helen.koike@collabora.com>
Reviewed-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
Reviewed-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
drivers/media/i2c/imx219.c