diff options
author | Frank Wunderlich <frank-w@public-files.de> | 2022-06-10 19:05:39 +0200 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2022-06-14 22:35:16 -0700 |
commit | 1f9a6abecf538cc73635f6082677a2f4dc9c89a4 (patch) | |
tree | d0a55aaa1c77b15b24c842694b006c5d8841cdd5 /drivers/net/dsa/mt7530.h | |
parent | 6e19bc26cccdd34739b8c42aba2758777d18b211 (diff) |
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>
Diffstat (limited to 'drivers/net/dsa/mt7530.h')
-rw-r--r-- | drivers/net/dsa/mt7530.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/dsa/mt7530.h b/drivers/net/dsa/mt7530.h index 71e36b69b96d..e509af95c354 100644 --- a/drivers/net/dsa/mt7530.h +++ b/drivers/net/dsa/mt7530.h @@ -8,7 +8,6 @@ #define MT7530_NUM_PORTS 7 #define MT7530_NUM_PHYS 5 -#define MT7530_CPU_PORT 6 #define MT7530_NUM_FDB_RECORDS 2048 #define MT7530_ALL_MEMBERS 0xff |