OSDN Git Service

net: dsa: move headers exported by slave.c to slave.h
authorVladimir Oltean <vladimir.oltean@nxp.com>
Mon, 21 Nov 2022 13:55:46 +0000 (15:55 +0200)
committerJakub Kicinski <kuba@kernel.org>
Wed, 23 Nov 2022 04:41:49 +0000 (20:41 -0800)
commit09f92341681a23346c456938bcb2670de2cd99d4
treeaae7cdaa6ffd5804e3ac3702c35e805675951acd
parent94ef6fad3bf317b43cdc59ba171dff2486e59975
net: dsa: move headers exported by slave.c to slave.h

Minimize the use of the bloated dsa_priv.h by moving the prototypes
exported by slave.c to their own header file.

This is just approximate to get the code structure right. There are some
interdependencies with static inline code left in dsa_priv.h, so leave
slave.h included from there for now.

Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/dsa/dsa.c
net/dsa/dsa2.c
net/dsa/dsa_priv.h
net/dsa/netlink.c
net/dsa/port.c
net/dsa/slave.c
net/dsa/slave.h [new file with mode: 0644]
net/dsa/switch.c