Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

media: drivers: use video_device_pipeline()

Use video_device_pipeline() in the drivers instead of
media_entity_pipeline().

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>

authored by

Tomi Valkeinen and committed by
Mauro Carvalho Chehab
98d79dc3 12cecbf9

+4 -4
+2 -2
drivers/media/platform/xilinx/xilinx-dma.c
··· 402 402 * Use the pipeline object embedded in the first DMA object that starts 403 403 * streaming. 404 404 */ 405 - pipe = to_xvip_pipeline(&dma->video.entity) ? : &dma->pipe; 405 + pipe = to_xvip_pipeline(&dma->video) ? : &dma->pipe; 406 406 407 407 ret = video_device_pipeline_start(&dma->video, &pipe->pipe); 408 408 if (ret < 0) ··· 447 447 static void xvip_dma_stop_streaming(struct vb2_queue *vq) 448 448 { 449 449 struct xvip_dma *dma = vb2_get_drv_priv(vq); 450 - struct xvip_pipeline *pipe = to_xvip_pipeline(&dma->video.entity); 450 + struct xvip_pipeline *pipe = to_xvip_pipeline(&dma->video); 451 451 struct xvip_dma_buffer *buf, *nbuf; 452 452 453 453 /* Stop the pipeline. */
+2 -2
drivers/media/platform/xilinx/xilinx-dma.h
··· 45 45 struct xvip_dma *output; 46 46 }; 47 47 48 - static inline struct xvip_pipeline *to_xvip_pipeline(struct media_entity *e) 48 + static inline struct xvip_pipeline *to_xvip_pipeline(struct video_device *vdev) 49 49 { 50 - struct media_pipeline *pipe = media_entity_pipeline(e); 50 + struct media_pipeline *pipe = video_device_pipeline(vdev); 51 51 52 52 if (!pipe) 53 53 return NULL;