Hi Niklas, Another small comment. On Fri, Nov 02, 2018 at 12:31:16AM +0100, Niklas Söderlund wrote: > From: Sakari Ailus <sakari.ailus@xxxxxxxxxxxxxxx> > > Change the media graph walk stack structure to use media pads instead of > using media entities. In addition to the entity, the pad contains the > information which pad in the entity are being dealt with. > > Signed-off-by: Sakari Ailus <sakari.ailus@xxxxxxxxxxxxxxx> > Reviewed-by: Niklas Söderlund <niklas.soderlund+renesas@xxxxxxxxxxxx> > --- > drivers/media/media-entity.c | 53 ++++++++++++++++++------------------ > include/media/media-entity.h | 6 ++-- > 2 files changed, 29 insertions(+), 30 deletions(-) > > diff --git a/drivers/media/media-entity.c b/drivers/media/media-entity.c > index 2bbc07de71aa5e6d..892e64a0a9d8ec42 100644 > --- a/drivers/media/media-entity.c > +++ b/drivers/media/media-entity.c > @@ -237,40 +237,39 @@ EXPORT_SYMBOL_GPL(media_entity_pads_init); > * Graph traversal > */ > > -static struct media_entity * > -media_entity_other(struct media_entity *entity, struct media_link *link) > +static struct media_pad * > +media_entity_other(struct media_pad *pad, struct media_link *link) Shouldn't this now be called media_pad_other() ? > { > - if (link->source->entity == entity) > - return link->sink->entity; > + if (link->source == pad) > + return link->sink; > else > - return link->source->entity; > + return link->source; > } [snip] -- Regards, Laurent Pinchart