media: subdev: Add for_each_active_route() macro
authorJacopo Mondi <jacopo+renesas@jmondi.org>
Sun, 17 Oct 2021 18:24:42 +0000 (20:24 +0200)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Sun, 22 Jan 2023 08:35:57 +0000 (09:35 +0100)
commit837f92f070f6b7e877143eb168025995688b9756
treefe556b5e971dfa1d6d654f9f1f6e6162a3cac474
parent17bb9bf819c542b41d7dbddd9fe1ec82ac509604
media: subdev: Add for_each_active_route() macro

Add a for_each_active_route() macro to replace the repeated pattern
of iterating on the active routes of a routing table.

Signed-off-by: Jacopo Mondi <jacopo+renesas@jmondi.org>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
.clang-format
drivers/media/v4l2-core/v4l2-subdev.c
include/media/v4l2-subdev.h