summaryrefslogtreecommitdiffstats
path: root/drivers/media/platform/vsp1/vsp1_wpf.c
diff options
context:
space:
mode:
authorLaurent Pinchart2016-02-16 01:10:26 +0100
committerMauro Carvalho Chehab2016-06-28 17:12:26 +0200
commit6a8e07b215a91be310dac358fdccd7709dd2458f (patch)
treefcd401556849d13e4da460d9aa615f8b7d0b6bdf /drivers/media/platform/vsp1/vsp1_wpf.c
parent[media] v4l: vsp1: Don't create LIF entity when the userspace API is enabled (diff)
downloadkernel-qcow2-linux-6a8e07b215a91be310dac358fdccd7709dd2458f.tar.gz
kernel-qcow2-linux-6a8e07b215a91be310dac358fdccd7709dd2458f.tar.xz
kernel-qcow2-linux-6a8e07b215a91be310dac358fdccd7709dd2458f.zip
[media] v4l: vsp1: Set entities functions
Initialize the function field of all subdev entities instantiated by the driver. This gets rids of multiple warnings printed by the media controller core. Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/media/platform/vsp1/vsp1_wpf.c')
-rw-r--r--drivers/media/platform/vsp1/vsp1_wpf.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/media/platform/vsp1/vsp1_wpf.c b/drivers/media/platform/vsp1/vsp1_wpf.c
index 59bdb450e6f1..70fb979d4f94 100644
--- a/drivers/media/platform/vsp1/vsp1_wpf.c
+++ b/drivers/media/platform/vsp1/vsp1_wpf.c
@@ -216,7 +216,8 @@ struct vsp1_rwpf *vsp1_wpf_create(struct vsp1_device *vsp1, unsigned int index)
wpf->entity.index = index;
sprintf(name, "wpf.%u", index);
- ret = vsp1_entity_init(vsp1, &wpf->entity, name, 2, &wpf_ops);
+ ret = vsp1_entity_init(vsp1, &wpf->entity, name, 2, &wpf_ops,
+ MEDIA_ENT_F_PROC_VIDEO_PIXEL_FORMATTER);
if (ret < 0)
return ERR_PTR(ret);