media: ov5647: Break out format handling
authorJacopo Mondi <jacopo@jmondi.org>
Thu, 19 Nov 2020 16:32:33 +0000 (17:32 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Tue, 12 Jan 2021 15:12:57 +0000 (16:12 +0100)
commitd7d6074ecd496073fbffd740a9f40f24b25ad956
tree66b4e6e1d9166621b0e103db1cab51dfcf9ae0c5
parent5bc5ca7149c00ac7c8f1920b323c27fbc24430c4
media: ov5647: Break out format handling

Break format handling out from the main driver structure.

This commit prepares for the introduction of more sensor formats and
resolutions by instrumenting the existing operation to work on multiple
modes instead of assuming a single supported one.

Signed-off-by: Jacopo Mondi <jacopo@jmondi.org>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/i2c/ov5647.c