From: Daniel Scally <djrscally@gmail.com>
To: linux-media@vger.kernel.org
Cc: sakari.ailus@linux.intel.com, laurent.pinchart@ideasonboard.com,
paul.elder@ideasonboard.com
Subject: [PATCH 0/2] Add iterator for an entity's data links
Date: Tue, 21 Jun 2022 17:34:55 +0100 [thread overview]
Message-ID: <20220621163457.766496-1-djrscally@gmail.com> (raw)
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(-)
--
2.25.1
next reply other threads:[~2022-06-21 16:35 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-06-21 16:34 Daniel Scally [this message]
2022-06-21 16:34 ` [PATCH 1/2] media: media-entity.h: Add iterator for entity data links Daniel Scally
2022-06-22 9:08 ` Jacopo Mondi
2022-06-22 9:17 ` Laurent Pinchart
2022-06-22 9:22 ` Jacopo Mondi
2022-06-22 9:30 ` Daniel Scally
2022-06-22 9:40 ` Daniel Scally
2022-06-22 9:16 ` Laurent Pinchart
2022-06-21 16:34 ` [PATCH 2/2] media: entity: Use dedicated data link iterator Daniel Scally
2022-06-22 9:18 ` Laurent Pinchart
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220621163457.766496-1-djrscally@gmail.com \
--to=djrscally@gmail.com \
--cc=laurent.pinchart@ideasonboard.com \
--cc=linux-media@vger.kernel.org \
--cc=paul.elder@ideasonboard.com \
--cc=sakari.ailus@linux.intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox