]> rtime.felk.cvut.cz Git - zynq/linux.git/commit
media: ov5640: Program the visible resolution
authorMaxime Ripard <maxime.ripard@bootlin.com>
Mon, 16 Apr 2018 12:36:56 +0000 (08:36 -0400)
committerMichal Simek <michal.simek@xilinx.com>
Thu, 27 Sep 2018 06:20:39 +0000 (08:20 +0200)
commitf6f0cb3974689a1ccaa260ed2a6f922cc5938f7a
tree745865ca839f81944aa392f10f6a6509f56cff4c
parent88c9541c56da713b308a26880fd698228ba9e7e5
media: ov5640: Program the visible resolution

The active frame size is set in the initialization arrays, but the value
itself is also available in the struct ov5640_mode_info.

Let's move these values out of the big bytes arrays, and program it with
the value of the mode that we are given.

Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Signed-off-by: Sam Bobrowicz <sam@elite-embedded.com>
drivers/media/i2c/ov5640.c