]> www.infradead.org Git - users/jedix/linux-maple.git/commit
media: rcar-vin: Refactor controls creation for video device
authorNiklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Fri, 9 Jul 2021 14:25:50 +0000 (16:25 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Thu, 5 Aug 2021 14:29:13 +0000 (16:29 +0200)
commit9b538196ddcf8809b65bcee5a61dfdff65b1c0bc
tree51d623ef3c97ef3a76cd8157234343278e934822
parent4a899f2eb323bd634e06e4f21538019a5c4cf7bd
media: rcar-vin: Refactor controls creation for video device

The controls for the video device are created in different code paths
depending on if the driver is using the media graph centric model (Gen3)
or the device centric model (Gen2 and earlier). This have lead to code
duplication that can be consolidated.

Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Reviewed-by: Jacopo Mondi <jacopo+renesas@jmondi.org>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/platform/rcar-vin/rcar-core.c