]> www.infradead.org Git - users/jedix/linux-maple.git/commit
media: v4l: Support passing media pad argument to v4l2_get_link_freq()
authorSakari Ailus <sakari.ailus@linux.intel.com>
Mon, 29 Apr 2024 08:38:23 +0000 (11:38 +0300)
committerHans Verkuil <hverkuil@xs4all.nl>
Sat, 15 Feb 2025 14:22:53 +0000 (15:22 +0100)
commit15f0035bfd0a7e3c829fd12c17ca0454c944649f
treed4122ed3060935669a435ee2c6d36e26b95745c9
parent4100f206c5b7fb514e2c6a14fd62cc469240d587
media: v4l: Support passing media pad argument to v4l2_get_link_freq()

v4l2_get_link_freq() accepts a V4L2 control handler for now, but it needs
to take struct media_pad argument in order to obtain the link frequency
using get_mbus_config() pad op. Prepare for this by allowing struct
media_pad as well.

Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Reviewed-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
drivers/media/v4l2-core/v4l2-common.c
include/media/v4l2-common.h