media: Accept non-subdev sinks in v4l2_create_fwnode_links_to_pad()
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Fri, 24 Mar 2023 10:35:29 +0000 (12:35 +0200)
committerHans Verkuil <hverkuil-cisco@xs4all.nl>
Tue, 11 Apr 2023 16:54:01 +0000 (18:54 +0200)
commitbd5a03bc5be8cc74c607896cb780a2819389a4dd
tree7078f2f313f44aab65448df927f1f089c19feaf5
parent68a9ca452a413d9ce4a9a61926ebf3788adbfb80
media: Accept non-subdev sinks in v4l2_create_fwnode_links_to_pad()

The v4l2_create_fwnode_links_to_pad() helper requires the sink pad
passed to it to belong to a subdev. This requirement can be lifted
easily. Make the function usable for non-subdev sinks, which allows
using it with video_device sinks.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
drivers/media/v4l2-core/v4l2-mc.c
include/media/v4l2-mc.h