aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/media/platform
diff options
context:
space:
mode:
authorSteve Longerbeam <slongerbeam@gmail.com>2020-05-01 19:15:42 +0200
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>2020-05-18 14:19:28 +0200
commit318cd36542801caecfc3eaa1fd733f59574ac0a9 (patch)
treea23fd7e6b43b630d949daf265cdb48be5b0ab4eb /drivers/media/platform
parentmedia: imx: csi: Implement get_fwnode_pad op (diff)
downloadwireguard-linux-318cd36542801caecfc3eaa1fd733f59574ac0a9.tar.xz
wireguard-linux-318cd36542801caecfc3eaa1fd733f59574ac0a9.zip
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: Steve Longerbeam <slongerbeam@gmail.com> Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Diffstat (limited to 'drivers/media/platform')
-rw-r--r--drivers/media/platform/video-mux.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/media/platform/video-mux.c b/drivers/media/platform/video-mux.c
index 7b6c96a29aa5..9f148f403603 100644
--- a/drivers/media/platform/video-mux.c
+++ b/drivers/media/platform/video-mux.c
@@ -97,6 +97,7 @@ out:
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_1_to_1,
};
static int video_mux_s_stream(struct v4l2_subdev *sd, int enable)