]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit207d9c695a3ea8fe08b462865b02d101e57d5d59
treeb8352d146aa8ecbf48ac0ed1ae266cb9f269ae3f
parentb999326db56eadbc3c2a90db78a1b1d87896939f
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