media: tc358743: set entity function to video interface bridge
authorPhilipp Zabel <p.zabel@pengutronix.de>
Thu, 21 Sep 2017 15:32:11 +0000 (17:32 +0200)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Fri, 27 Oct 2017 12:15:16 +0000 (14:15 +0200)
The TC358743 is an HDMI to MIPI CSI2-2 bridge.

Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/i2c/tc358743.c

index cd995e6..0b65096 100644 (file)
@@ -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;