media: i2c: ov6650: Use new [get|set]_mbus_config ops
authorJacopo Mondi <jacopo+renesas@jmondi.org>
Tue, 16 Jun 2020 14:12:38 +0000 (16:12 +0200)
committerpopcornmix <popcornmix@gmail.com>
Wed, 1 Jul 2020 15:34:13 +0000 (16:34 +0100)
commitd030be8fc776cff51de61be5177ab66a7891dd4c
tree0bf140972cd382b162e9d68a3b28bb844f7e7767
parentc715e983c2370881a9b580e16b0aa94e012eafd7
media: i2c: ov6650: Use new [get|set]_mbus_config ops

Upstream https://patchwork.linuxtv.org/patch/64674/

Use the new get_mbus_config and set_mbus_config pad operations in place
of the video operations currently in use.

Compared to other drivers where the same conversion has been performed,
ov6650 proved to be a bit more tricky, as the existing g_mbus_config
implementation did not report the currently applied configuration but
the set of all possible configuration options.

Adapt the driver to support the semantic of the two newly introduced
operations:
- get_mbus_config reports the current media bus configuration
- set_mbus_config applies only changes explicitly requested and updates
  the provided cfg parameter to report what has actually been applied to
  the hardware.

Compile-tested only.

Signed-off-by: Jacopo Mondi <jacopo+renesas@jmondi.org>
drivers/media/i2c/ov6650.c