aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/v4l2-core/v4l2-subdev.c
diff options
context:
space:
mode:
authorLaurent Pinchart <[email protected]>2024-06-18 23:46:16 +0000
committerLaurent Pinchart <[email protected]>2024-08-26 13:36:14 +0000
commit9bde4f7caf38df94257d2483e89f371b1a530e9a (patch)
treeae6b808ada5e53cbdf6178e71b7fcf08714d8770 /drivers/media/v4l2-core/v4l2-subdev.c
parentmedia: sun4i_csi: Implement link validate for sun4i_csi subdev (diff)
downloadkernel-9bde4f7caf38df94257d2483e89f371b1a530e9a.tar.gz
kernel-9bde4f7caf38df94257d2483e89f371b1a530e9a.zip
media: sun4i_csi: Don't use v4l2_subdev_link_validate() for video device
The v4l2_subdev_link_validate() function is a helper designed to validate links whose sink is a subdev. When called on a link whose sink is a video device, it only prints a warning and returns. Its usage in the sun4i_csi driver is wrong, leaving the link from the sub4i_csi subdev to the capture video device unvalidated. Planned improvements to the v4l2_subdev_link_validate() function will turn the warning into an error, breaking the sun4i_csi driver. As an interim measure, move the warning to the sun4i_csi driver in a custom validation handler, and drop the call to the helper. Signed-off-by: Laurent Pinchart <[email protected]> Acked-by: Chen-Yu Tsai <[email protected]> Reviewed-by: Tomi Valkeinen <[email protected]> Acked-by: Sakari Ailus <[email protected]>
Diffstat (limited to 'drivers/media/v4l2-core/v4l2-subdev.c')
0 files changed, 0 insertions, 0 deletions