mbox series

[0/2] Add iterator for an entity's data links

Message ID 20220621163457.766496-1-djrscally@gmail.com (mailing list archive)
Headers show
Series Add iterator for an entity's data links | expand

Message

Daniel Scally June 21, 2022, 4:34 p.m. UTC
There are a bunch of places in the kernel where code iterates over an entity's
links to perform some action. Those almost invariably have the implicit
assumption that those links are data links, which might not be true following
the introduction of ancillary links. Add a dedicated iterator that skips any
non data links for use instead, which will allow that assumption to hold true.

Daniel Scally (2):
  media: media-entity.h: Add iterator for entity data links
  media: entity: Use dedicated data link iterator

 drivers/media/mc/mc-entity.c |  6 +++---
 include/media/media-entity.h | 26 ++++++++++++++++++++++++++
 2 files changed, 29 insertions(+), 3 deletions(-)