media: ov5640: Program the visible resolution
authorMaxime Ripard <maxime.ripard@bootlin.com>
Mon, 16 Apr 2018 12:36:56 +0000 (08:36 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Thu, 17 May 2018 10:22:08 +0000 (06:22 -0400)
commit86633417997fdb4142d69298bfe182d56c29d7be
tree2b83b55c1cff9fd2bfa33d408d85af1e6c0643dc
parent476dec012f4c6545b0b7599cd9adba2ed819ad3b
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>
drivers/media/i2c/ov5640.c