media: video-mux: Parse information from firmware without using callbacks
authorSteve Longerbeam <slongerbeam@gmail.com>
Fri, 1 May 2020 17:15:38 +0000 (19:15 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Mon, 18 May 2020 09:14:30 +0000 (11:14 +0200)
commitf4d7a681b82665cf50c993623956fa07e34d73aa
treed85a52e49356cf4f0cb61eb1238b90a79e31dbcd
parent0d3c81e82da90f0752a09c38ffae7e7ffec01b33
media: video-mux: Parse information from firmware without using callbacks

Instead of using the convenience function
v4l2_async_register_fwnode_subdev(), parse the video-mux input endpoints
and set up the async sub-devices without using callbacks. The video-mux
knows which ports it must parse (the input ports) 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/media/platform/video-mux.c