net: dsa: mv88e6xxx: Create helper for FIDs in use
authorAndrew Lunn <andrew@lunn.ch>
Fri, 18 Sep 2020 19:11:06 +0000 (21:11 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sat, 19 Sep 2020 01:17:45 +0000 (18:17 -0700)
commit90b6dbdf415e74b5a317f1d6069c48eb731a0b7a
tree10c698b9e9b9991cffb69247cacd134b471b8f53
parent9dd43aa211809f5c6641fa6c11a7eaf1514e5d53
net: dsa: mv88e6xxx: Create helper for FIDs in use

Refactor the code in mv88e6xxx_atu_new() which builds a bitmaps of
FIDs in use into a helper function. This will be reused by the devlink
code when dumping the ATU.

Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/mv88e6xxx/chip.c
drivers/net/dsa/mv88e6xxx/chip.h