]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
media: imx: Parse information from firmware without using callbacks
authorSteve Longerbeam <slongerbeam@gmail.com>
Fri, 1 May 2020 17:15:39 +0000 (19:15 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Mon, 18 May 2020 09:15:33 +0000 (11:15 +0200)
commit0e63a5e4bb4ea3c87ff5978a5856f0c6365c7619
treefa10e1040bb56bf090218620a923d27ac4a4d374
parentf4d7a681b82665cf50c993623956fa07e34d73aa
media: imx: Parse information from firmware without using callbacks

Instead of using the convenience functions
v4l2_async_notifier_parse_fwnode_endpoints*() or
v4l2_async_register_fwnode_subdev(), parse the input endpoints
and set up the async sub-devices without using callbacks. The drivers
know which ports it must parse and how to handle unconnected remotes,
so it makes the code simpler to transfer control of endpoint parsing
to the driver.

Signed-off-by: Steve Longerbeam <slongerbeam@gmail.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/staging/media/imx/imx-media-csi.c
drivers/staging/media/imx/imx6-mipi-csi2.c
drivers/staging/media/imx/imx7-media-csi.c
drivers/staging/media/imx/imx7-mipi-csis.c