]> git.baikalelectronics.ru Git - kernel.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)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Thu, 17 May 2018 10:22:08 +0000 (06:22 -0400)
commit0ec3f41552461b497b60fd3bb577bcda71a53479
tree2b83b55c1cff9fd2bfa33d408d85af1e6c0643dc
parentd2caae1600ed7f297a06ba5ad054eb4d2b83a689
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