media: v4l2-mediabus: Use structures to describe bus configuration
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Mon, 3 Jan 2022 16:24:11 +0000 (17:24 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Thu, 17 Feb 2022 08:51:23 +0000 (09:51 +0100)
commit6a7bdd89f50d399dd02847e6f398d408b086df50
tree1dede8bfb5a4dce794161fbdcaee21368eb3e180
parent44e756fa56e209cfbf694583589f5f3cd97ec67c
media: v4l2-mediabus: Use structures to describe bus configuration

The media bus configuration is specified through a set of flags, some of
which being mutually exclusive. This doesn't scale to express more
complex configurations. Improve the API by replacing the single flags
field in v4l2_mbus_config by a union of v4l2_mbus_config_* structures.
The flags themselves are still used in those structures, so they are
kept here. Drivers are however updated to use structure fields instead
of flags when already possible.

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
16 files changed:
drivers/gpu/ipu-v3/ipu-csi.c
drivers/media/i2c/adv7180.c
drivers/media/i2c/adv748x/adv748x-csi2.c
drivers/media/i2c/ml86v7667.c
drivers/media/i2c/mt9m001.c
drivers/media/i2c/mt9m111.c
drivers/media/i2c/ov6650.c
drivers/media/i2c/ov9640.c
drivers/media/i2c/tc358743.c
drivers/media/i2c/tvp5150.c
drivers/media/platform/atmel/microchip-csi2dc.c
drivers/media/platform/pxa_camera.c
drivers/media/platform/rcar-vin/rcar-csi2.c
drivers/staging/media/imx/imx-media-csi.c
drivers/staging/media/imx/imx6-mipi-csi2.c
include/media/v4l2-mediabus.h