[media] s5c73m3: Fix entity function assignment for the OIF subdev
authorSylwester Nawrocki <s.nawrocki@samsung.com>
Thu, 1 Sep 2016 11:47:07 +0000 (08:47 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Thu, 22 Sep 2016 13:15:36 +0000 (10:15 -0300)
Suppresses warnings like:
s5p-fimc-md camera: Entity type for entity S5C73M3-OIF was not initialized!

Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/i2c/s5c73m3/s5c73m3-core.c

index 08af58fb8e7d0089a410b8ceb1e4c2466ba9f9da..3844853ab0a0491c87a6c7c8e19595856e01ad12 100644 (file)
@@ -1706,7 +1706,7 @@ static int s5c73m3_probe(struct i2c_client *client,
        state->oif_pads[OIF_ISP_PAD].flags = MEDIA_PAD_FL_SINK;
        state->oif_pads[OIF_JPEG_PAD].flags = MEDIA_PAD_FL_SINK;
        state->oif_pads[OIF_SOURCE_PAD].flags = MEDIA_PAD_FL_SOURCE;
-       oif_sd->entity.function = MEDIA_ENT_F_V4L2_SUBDEV_UNKNOWN;
+       oif_sd->entity.function = MEDIA_ENT_F_PROC_VIDEO_SCALER;
 
        ret = media_entity_pads_init(&oif_sd->entity, OIF_NUM_PADS,
                                                        state->oif_pads);