media: mc: entity: Add pad iterator for media_pipeline
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Wed, 21 Dec 2022 09:33:37 +0000 (10:33 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Mon, 6 Feb 2023 07:31:51 +0000 (08:31 +0100)
commitd10ac51e8a047e613bee8309739d122e48e00bcb
tree3d8ae0b5bb3db7aa45f90562fdfa1fcb4cf2bcc4
parentd7ff69139908842adf824be4f50c7e9ac5886c04
media: mc: entity: Add pad iterator for media_pipeline

Add a media_pipeline_for_each_pad() macro to iterate over pads in a
pipeline. This should be used by driver as a replacement of the
media_graph_walk API, as iterating over the media_pipeline uses the
cached list of pads and is thus more efficient.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/mc/mc-entity.c
include/media/media-entity.h