[PATCH 20/22] [media] video-multiplexer: set entity function to mux

Philipp Zabel
2016-10-07T16:01:23Z

Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
---
drivers/media/platform/video-multiplexer.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/drivers/media/platform/video-multiplexer.c b/drivers/media/platform/video-multiplexer.c
index e9137ba..bcd1688 100644
--- a/drivers/media/platform/video-multiplexer.c
+++ b/drivers/media/platform/video-multiplexer.c
@@ -138,6 +138,7 @@ static int vidsw_async_init(struct vidsw *vidsw, struct device_node *node)
vidsw->pads[i].flags = MEDIA_PAD_FL_SINK;
vidsw->pads[numports - 1].flags = MEDIA_PAD_FL_SOURCE;

+ vidsw->subdev.entity.function = MEDIA_ENT_F_MUX;
ret = media_entity_pads_init(&vidsw->subdev.entity, numports,
vidsw->pads);
if (ret < 0)
--
2.9.3