media: entity: Add iterator for entity data links
authorDaniel Scally <djrscally@gmail.com>
Thu, 7 Jul 2022 22:47:32 +0000 (23:47 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Fri, 15 Jul 2022 14:24:40 +0000 (15:24 +0100)
commit1ed3d6446b966143e67a106132eea169b3fc5e1c
treeb8352d146aa8ecbf48ac0ed1ae266cb9f269ae3f
parent3193ceeae48ad778a059d66f6ab4299fc498f9d4
media: entity: Add iterator for entity data links

Iterating over the links for an entity is a somewhat common need
through the media subsystem, but generally the assumption is that
they will all be data links. To meet that assumption add a new macro
that iterates through an entity's links and skips non-data links.

Signed-off-by: Daniel Scally <djrscally@gmail.com>
Reviewed-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