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)
committerDom Cobley <popcornmix@gmail.com>
Mon, 21 Mar 2022 16:04:47 +0000 (16:04 +0000)
commit3afef7b8ceaae593db4f3661ec6781d7ce021cac
treec24ccd9cbb216c493d03d08c3072ba0dcc97ad95
parent6bd87e9982fed2a51ee60b5038b30676662b55c5
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>
drivers/media/v4l2-core/v4l2-async.c