From f7480ad0d458b74a9a1a882b56917e4695ffed1f Mon Sep 17 00:00:00 2001
From: Philipp Zabel
Date: Thu, 21 Sep 2017 17:32:11 +0200
Subject: media: tc358743: set entity function to video interface bridge
The TC358743 is an HDMI to MIPI CSI2-2 bridge.
Signed-off-by: Philipp Zabel
Signed-off-by: Hans Verkuil
Signed-off-by: Mauro Carvalho Chehab
---
drivers/media/i2c/tc358743.c | 1 +
1 file changed, 1 insertion(+)
(limited to 'drivers/media/i2c/tc358743.c')
diff --git a/drivers/media/i2c/tc358743.c b/drivers/media/i2c/tc358743.c
index cd995e6a98ef..0b65096613d9 100644
--- a/drivers/media/i2c/tc358743.c
+++ b/drivers/media/i2c/tc358743.c
@@ -2101,6 +2101,7 @@ static int tc358743_probe(struct i2c_client *client,
}
state->pad.flags = MEDIA_PAD_FL_SOURCE;
+ sd->entity.function = MEDIA_ENT_F_VID_IF_BRIDGE;
err = media_entity_pads_init(&sd->entity, 1, &state->pad);
if (err < 0)
goto err_hdl;
--
cgit v1.2.3