]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit281c329c596534f6a7ef92b5d739d564af50cb1b
treed85a52e49356cf4f0cb61eb1238b90a79e31dbcd
parent6c305f48f47b88171cee8073237b6f3fb99679d1
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