]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net: dsa: move dsa_bridge_ports() helper to dsa.h
authorDaniel Golle <daniel@makrotopia.org>
Wed, 1 Apr 2026 13:34:30 +0000 (14:34 +0100)
committerJakub Kicinski <kuba@kernel.org>
Tue, 7 Apr 2026 01:30:33 +0000 (18:30 -0700)
commitb0a79590d10847f190ed377d2664377d7068191d
tree88b702c7df77aa7371c5a0cb2c1b6b90ea536f25
parent98f28d8d6e5a5ed058dd37854c19e9b3bae72eff
net: dsa: move dsa_bridge_ports() helper to dsa.h

The yt921x driver contains a helper to create a bitmap of ports
which are members of a bridge.

Move the helper as static inline function into dsa.h, so other driver
can make use of it as well.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Link: https://patch.msgid.link/4f8bbfce3e4e3a02064fc4dc366263136c6e0383.1775049897.git.daniel@makrotopia.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/dsa/yt921x.c
include/net/dsa.h