net: dsa: mt7530: rework mt753[01]_setup
authorFrank Wunderlich <frank-w@public-files.de>
Fri, 10 Jun 2022 17:05:38 +0000 (19:05 +0200)
committerJakub Kicinski <kuba@kernel.org>
Wed, 15 Jun 2022 05:35:16 +0000 (22:35 -0700)
commit6e19bc26cccdd34739b8c42aba2758777d18b211
tree6db61a694a040edc6f2d1e1dcf3ad6150e775142
parenta9c317417c27f28e10031133c6cba2441c670ebc
net: dsa: mt7530: rework mt753[01]_setup

Enumerate available cpu-ports instead of using hardcoded constant.

Suggested-by: Vladimir Oltean <olteanv@gmail.com>
Signed-off-by: Frank Wunderlich <frank-w@public-files.de>
Reviewed-by: Vladimir Oltean <olteanv@gmail.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/dsa/mt7530.c