]> 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)
commit9c95ab70bff1857cdee10d8da42e39c8cd43e606
tree813fc50007d1da7a1ce5a72e1c157ccaf1253ab5
parent973275c813c76467725d1c9bb4f3afa6d454302f
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