Commit 318cd365 authored by Steve Longerbeam's avatar Steve Longerbeam Committed by Mauro Carvalho Chehab

media: video-mux: Implement get_fwnode_pad op

Use v4l2_subdev_get_fwnode_pad_1_to_1() as the get_fwnode_pad operation.
The video mux maps fwnode port numbers and pad indexes 1:1.
Signed-off-by: default avatarSteve Longerbeam <slongerbeam@gmail.com>
Signed-off-by: default avatarSakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+huawei@kernel.org>
parent 596e5c58
...@@ -97,6 +97,7 @@ static int video_mux_link_setup(struct media_entity *entity, ...@@ -97,6 +97,7 @@ static int video_mux_link_setup(struct media_entity *entity,
static const struct media_entity_operations video_mux_ops = { static const struct media_entity_operations video_mux_ops = {
.link_setup = video_mux_link_setup, .link_setup = video_mux_link_setup,
.link_validate = v4l2_subdev_link_validate, .link_validate = v4l2_subdev_link_validate,
.get_fwnode_pad = v4l2_subdev_get_fwnode_pad_1_to_1,
}; };
static int video_mux_s_stream(struct v4l2_subdev *sd, int enable) static int video_mux_s_stream(struct v4l2_subdev *sd, int enable)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment