]> 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)
commit968328f0baeb92dad83fbb7d518109eb2eb749ff
tree5648139473e9763fe9bcb3df89c842282787c0a6
parent2447ce3b2d2843c7fc0c95f6f3a4d6f753762e80
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