media: mc: entity: Add iterator helper for entity pads
authorJacopo Mondi <jacopo+renesas@jmondi.org>
Wed, 31 Aug 2022 14:13:28 +0000 (16:13 +0200)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Sat, 24 Sep 2022 07:09:50 +0000 (09:09 +0200)
commit8db465f7d6a0fb573d8f7c953d336b8470c0e831
tree58bb51fb5c54dc7e881fa846d2325a0e42b8719e
parentb7319e2bd7bd7740a405719727e6fc01be1363ef
media: mc: entity: Add iterator helper for entity pads

Add an iterator helper to easily cycle through all pads in an entity and
use it in media-entity and media-device code where appropriate.

Signed-off-by: Jacopo Mondi <jacopo+renesas@jmondi.org>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@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-device.c
drivers/media/mc/mc-entity.c
include/media/media-entity.h