]> git.baikalelectronics.ru Git - kernel.git/commit
media: v4l2-async: Create links during v4l2_async_match_notify()
authorDaniel Scally <djrscally@gmail.com>
Wed, 2 Mar 2022 22:03:04 +0000 (22:03 +0000)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Sun, 24 Apr 2022 06:59:47 +0000 (07:59 +0100)
commit2ee4788320bfea63b3f46e6358ffd7b54f996cbc
tree5648139473e9763fe9bcb3df89c842282787c0a6
parent347894789b0b601c951c077aa5187d6f61f75586
media: v4l2-async: Create links during v4l2_async_match_notify()

Upon an async fwnode match, there's some typical behaviour that the
notifier and matching subdev will want to do. For example, a notifier
representing a sensor matching to an async subdev representing its
VCM will want to create an ancillary link to expose that relationship
to userspace.

To avoid lots of code in individual drivers, try to build these links
within v4l2 core.

Signed-off-by: Daniel Scally <djrscally@gmail.com>
Reviewed-by: Jean-Michel Hautbois <jeanmichel.hautbois@ideasonboard.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/v4l2-core/v4l2-async.c