]> git.baikalelectronics.ru Git - kernel.git/commit
media: ov5640: Move test_pattern_menu before ov5640_set_ctrl_test_pattern
authorChen-Yu Tsai <wens@csie.org>
Fri, 18 Jan 2019 08:52:01 +0000 (03:52 -0500)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Mon, 18 Feb 2019 16:27:18 +0000 (11:27 -0500)
commitde4f973309b0e4922bbbd5d08511b5ef001c0d59
treea5f1deda7bb275261ee8ca730af2d329920f367e
parentc6888ac24300171ab6e3d550abd88cfba554d050
media: ov5640: Move test_pattern_menu before ov5640_set_ctrl_test_pattern

The OV5640 has many options for generating test patterns. Unfortunately
there is only one V4L2 control for it. Thus the driver would need to
list some or all combinations.

Move the test_pattern_menu list before the ov5640_set_ctrl_test_pattern
function that programs the hardware. This would allow us to add a
matching list of values to program into the hardware, while keeping the
two lists together for ease of maintenance.

Signed-off-by: Chen-Yu Tsai <wens@csie.org>
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