media: ti: omap4iss: Use media_pipeline_for_each_entity()
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Wed, 21 Dec 2022 09:33:40 +0000 (10:33 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Mon, 6 Feb 2023 07:34:51 +0000 (08:34 +0100)
commit27e45f2e59c9db2c83ed67775e911c8a3c776db2
treeeb30b7b48e3fa5fbf0bc781bf5ec3e9b839d7f0e
parent3e8537b4c15172bfe1b285c3155ed5c37d523cd3
media: ti: omap4iss: Use media_pipeline_for_each_entity()

Replace usage of the deprecated media graph walk API with the new
media_pipeline_for_each_entity() and media_pipeline_for_each_pad()
macros.

Even though the entity iterator may seem a better match when build the
entity bitmap in iss_video_stream(), it would not be more efficient as
it would still iterate internally over all pads. As the entity iterator
requires explicit iterator initialization and cleanup calls, the code
would be more complex.

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/staging/media/omap4iss/iss_video.c