]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: mt7530: get cpu-port via dp->cpu_dp instead of constant
authorFrank Wunderlich <frank-w@public-files.de>
Fri, 10 Jun 2022 17:05:39 +0000 (19:05 +0200)
committerJakub Kicinski <kuba@kernel.org>
Wed, 15 Jun 2022 05:35:16 +0000 (22:35 -0700)
commit33162471c6f0b9dd894f38b698544fe1f92e5b91
treed0a55aaa1c77b15b24c842694b006c5d8841cdd5
parent6bcec78364e6fa77d4ea67c8e8c4d00525f51530
net: dsa: mt7530: get cpu-port via dp->cpu_dp instead of constant

Replace last occurences of hardcoded cpu-port by cpu_dp member of
dsa_port struct.

Now the constant can be dropped.

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
drivers/net/dsa/mt7530.h