]> git.baikalelectronics.ru Git - kernel.git/commit
media: v4l: vsp1: Use vsp1_entity.pipe to check if entity belongs to a pipeline
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Thu, 22 Feb 2018 22:27:47 +0000 (17:27 -0500)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Fri, 4 May 2018 11:57:06 +0000 (07:57 -0400)
commit26be3d78326f79bbf00a0c77bf4e3c861d678515
tree813fc50007d1da7a1ce5a72e1c157ccaf1253ab5
parent3193ea1f153f1db1446767e6803428a67e9ad11d
media: v4l: vsp1: Use vsp1_entity.pipe to check if entity belongs to a pipeline

The DRM pipeline handling code uses the entity's pipe list head to check
whether the entity is already included in a pipeline. This method is a
bit fragile in the sense that it uses list_empty() on a list_head that
is a list member. Replace it by a simpler check for the entity pipe
pointer.

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/platform/vsp1/vsp1_drm.c