[media] exynos4-is: Add missing entity function initialization
authorSylwester Nawrocki <s.nawrocki@samsung.com>
Thu, 1 Sep 2016 11:47:05 +0000 (08:47 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Thu, 22 Sep 2016 13:14:56 +0000 (10:14 -0300)
Suppresses following warnings:

s5p-fimc-md camera: Entity type for entity FIMC.0 was not initialized!
s5p-fimc-md camera: Entity type for entity FIMC.1 was not initialized!
s5p-fimc-md camera: Entity type for entity s5p-mipi-csis.0 was not initialized!
s5p-fimc-md camera: Entity type for entity s5p-mipi-csis.1 was not initialized!
s5p-fimc-md camera: Entity type for entity FIMC-LITE.0 was not initialized!
s5p-fimc-md camera: Entity type for entity FIMC-LITE.1 was not initialized!
s5p-fimc-md camera: Entity type for entity FIMC-IS-ISP was not initialized!

Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/platform/exynos4-is/fimc-capture.c
drivers/media/platform/exynos4-is/fimc-isp.c
drivers/media/platform/exynos4-is/fimc-lite.c
drivers/media/platform/exynos4-is/mipi-csis.c

index 344028ea7d5528b45231011fb08afe9951956b35..964f4a6819343a4fe1fc375ddde45a052cab3747 100644 (file)
@@ -1796,6 +1796,7 @@ static int fimc_register_capture_device(struct fimc_dev *fimc,
        vid_cap->wb_fmt.code = fmt->mbus_code;
 
        vid_cap->vd_pad.flags = MEDIA_PAD_FL_SINK;
+       vfd->entity.function = MEDIA_ENT_F_PROC_VIDEO_SCALER;
        ret = media_entity_pads_init(&vfd->entity, 1, &vid_cap->vd_pad);
        if (ret)
                goto err_free_ctx;
index 293b807020c49efd10ab803a608fa1f3d5863e13..8efe9160ab3460343838f0095f5c0a2012dfd86e 100644 (file)
@@ -705,6 +705,7 @@ int fimc_isp_subdev_create(struct fimc_isp *isp)
        sd->flags |= V4L2_SUBDEV_FL_HAS_DEVNODE;
        snprintf(sd->name, sizeof(sd->name), "FIMC-IS-ISP");
 
+       sd->entity.function = MEDIA_ENT_F_PROC_VIDEO_PIXEL_FORMATTER;
        isp->subdev_pads[FIMC_ISP_SD_PAD_SINK].flags = MEDIA_PAD_FL_SINK;
        isp->subdev_pads[FIMC_ISP_SD_PAD_SRC_FIFO].flags = MEDIA_PAD_FL_SOURCE;
        isp->subdev_pads[FIMC_ISP_SD_PAD_SRC_DMA].flags = MEDIA_PAD_FL_SOURCE;
index fd16605dd1d4145963f89d837e43a7e577ef9c50..b91abf1c4d43b6330ae8ff9daa307affdf25d03e 100644 (file)
@@ -1432,6 +1432,7 @@ static int fimc_lite_create_capture_subdev(struct fimc_lite *fimc)
 
        sd->ctrl_handler = handler;
        sd->internal_ops = &fimc_lite_subdev_internal_ops;
+       sd->entity.function = MEDIA_ENT_F_PROC_VIDEO_SCALER;
        sd->entity.ops = &fimc_lite_subdev_media_ops;
        sd->owner = THIS_MODULE;
        v4l2_set_subdevdata(sd, fimc);
index 86e681daa89daaad5b201de74accc7238faa57e5..befd9fc0adc4aa26c74deee6a9e6ba39d50251c2 100644 (file)
@@ -853,6 +853,7 @@ static int s5pcsis_probe(struct platform_device *pdev)
        state->format.width = S5PCSIS_DEF_PIX_WIDTH;
        state->format.height = S5PCSIS_DEF_PIX_HEIGHT;
 
+       state->sd.entity.function = MEDIA_ENT_F_IO_V4L;
        state->pads[CSIS_PAD_SINK].flags = MEDIA_PAD_FL_SINK;
        state->pads[CSIS_PAD_SOURCE].flags = MEDIA_PAD_FL_SOURCE;
        ret = media_entity_pads_init(&state->sd.entity,