media: ov5645: Set media entity function
authorTodor Tomov <todor.tomov@linaro.org>
Wed, 5 Jul 2017 08:44:47 +0000 (04:44 -0400)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Wed, 19 Jul 2017 19:50:42 +0000 (15:50 -0400)
Set media entity function to MEDIA_ENT_F_CAM_SENSOR.

Signed-off-by: Todor Tomov <todor.tomov@linaro.org>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/i2c/ov5645.c

index d1e844f7f03f616cae9c882716e7ea67cb15ff26..bb3dd0d057ddcb53126a45772223e85255a39eba 100644 (file)
@@ -1229,6 +1229,7 @@ static int ov5645_probe(struct i2c_client *client,
        ov5645->sd.flags |= V4L2_SUBDEV_FL_HAS_DEVNODE;
        ov5645->pad.flags = MEDIA_PAD_FL_SOURCE;
        ov5645->sd.dev = &client->dev;
+       ov5645->sd.entity.function = MEDIA_ENT_F_CAM_SENSOR;
 
        ret = media_entity_pads_init(&ov5645->sd.entity, 1, &ov5645->pad);
        if (ret < 0) {