summaryrefslogtreecommitdiffstats
path: root/drivers/media/platform/vsp1/vsp1_drv.c
diff options
context:
space:
mode:
authorLaurent Pinchart2017-06-25 19:15:22 +0200
committerLaurent Pinchart2017-07-29 22:46:56 +0200
commit2275e8d7f5872d83889aca7dcf30e3e75628d15d (patch)
treefb2b2b96bf1f073207f563df2017b5b2dd437f87 /drivers/media/platform/vsp1/vsp1_drv.c
parentv4l: vsp1: Don't set WPF sink pointer (diff)
downloadkernel-qcow2-linux-2275e8d7f5872d83889aca7dcf30e3e75628d15d.tar.gz
kernel-qcow2-linux-2275e8d7f5872d83889aca7dcf30e3e75628d15d.tar.xz
kernel-qcow2-linux-2275e8d7f5872d83889aca7dcf30e3e75628d15d.zip
v4l: vsp1: Store source and sink pointers as vsp1_entity
The internal VSP entity source and sink pointers are stored as media_entity pointers, which are then cast to a vsp1_entity. As all sources and sinks are vsp1_entity instances, we can store the vsp1_entity pointers directly. Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com> Acked-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/media/platform/vsp1/vsp1_drv.c')
-rw-r--r--drivers/media/platform/vsp1/vsp1_drv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/platform/vsp1/vsp1_drv.c b/drivers/media/platform/vsp1/vsp1_drv.c
index 35087d5573ce..9b3a0790f92a 100644
--- a/drivers/media/platform/vsp1/vsp1_drv.c
+++ b/drivers/media/platform/vsp1/vsp1_drv.c
@@ -121,7 +121,7 @@ static int vsp1_create_sink_links(struct vsp1_device *vsp1,
return ret;
if (flags & MEDIA_LNK_FL_ENABLED)
- source->sink = entity;
+ source->sink = sink;
}
}