diff mbox series

[v5,09/23] media: video-mux: Implement get_fwnode_pad op

Message ID 20200420003930.11463-10-slongerbeam@gmail.com
State New
Headers show
Series [v5,01/23] media: entity: Pass entity to get_fwnode_pad operation | expand

Commit Message

Steve Longerbeam April 20, 2020, 12:39 a.m. UTC
Use v4l2_subdev_get_fwnode_pad_default() as the get_fwnode_pad operation.
The video mux maps fwnode port numbers and pad indexes 1:1.

Signed-off-by: Steve Longerbeam <slongerbeam@gmail.com>
---
 drivers/media/platform/video-mux.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/drivers/media/platform/video-mux.c b/drivers/media/platform/video-mux.c
index 7b6c96a29aa5..a21b299ce0e7 100644
--- a/drivers/media/platform/video-mux.c
+++ b/drivers/media/platform/video-mux.c
@@ -97,6 +97,7 @@  static int video_mux_link_setup(struct media_entity *entity,
 static const struct media_entity_operations video_mux_ops = {
 	.link_setup = video_mux_link_setup,
 	.link_validate = v4l2_subdev_link_validate,
+	.get_fwnode_pad = v4l2_subdev_get_fwnode_pad_default,
 };
 
 static int video_mux_s_stream(struct v4l2_subdev *sd, int enable)