media: ad9389b/adv7511: set proper media entity function
authorHans Verkuil <hans.verkuil@cisco.com>
Mon, 18 Jun 2018 09:08:20 +0000 (05:08 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Wed, 25 Jul 2018 11:51:58 +0000 (07:51 -0400)
These two drivers both have function MEDIA_ENT_F_DV_ENCODER.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/i2c/ad9389b.c
drivers/media/i2c/adv7511.c

index 91ff06088572f2a1cbc3a9b5af3400c7a0ececbd..5b008b0002c02c185bad782c2e3fe4f8e26a23b5 100644 (file)
@@ -1134,6 +1134,7 @@ static int ad9389b_probe(struct i2c_client *client, const struct i2c_device_id *
                goto err_hdl;
        }
        state->pad.flags = MEDIA_PAD_FL_SINK;
+       sd->entity.function = MEDIA_ENT_F_DV_ENCODER;
        err = media_entity_pads_init(&sd->entity, 1, &state->pad);
        if (err)
                goto err_hdl;
index 5731751d3f2a427f5e3666b68a5e1acfcc08e33f..55c2ea0720d9e13dc846d5665602d21cbd5c9fdd 100644 (file)
@@ -1847,6 +1847,7 @@ static int adv7511_probe(struct i2c_client *client, const struct i2c_device_id *
                goto err_hdl;
        }
        state->pad.flags = MEDIA_PAD_FL_SINK;
+       sd->entity.function = MEDIA_ENT_F_DV_ENCODER;
        err = media_entity_pads_init(&sd->entity, 1, &state->pad);
        if (err)
                goto err_hdl;