diff options
author | Michael Grzeschik <m.grzeschik@pengutronix.de> | 2020-12-01 21:45:05 +0100 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2020-12-02 17:16:29 -0800 |
commit | 241ed719bc9884758f8953550f2ed22715b24339 (patch) | |
tree | fc9edc0fd7576ce41d0c35f7cf53fff856fcd62b /drivers/net/dsa/microchip/ksz8795_reg.h | |
parent | c9f4633b93ea5a138626fb9ca8fa43e923caad4a (diff) | |
download | lwn-241ed719bc9884758f8953550f2ed22715b24339.tar.gz lwn-241ed719bc9884758f8953550f2ed22715b24339.zip |
net: dsa: microchip: ksz8795: use port_cnt instead of TOTOAL_PORT_NUM
To get the driver working with other chips using different port counts
the dyn_mac_table should be flushed depending on the amount of available
ports. This patch remove the extra define TOTOAL_PORT_NUM and is
making use of the dynamic port_cnt variable instead.
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/net/dsa/microchip/ksz8795_reg.h')
-rw-r--r-- | drivers/net/dsa/microchip/ksz8795_reg.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/net/dsa/microchip/ksz8795_reg.h b/drivers/net/dsa/microchip/ksz8795_reg.h index 6377165a236f..681d19ab27b8 100644 --- a/drivers/net/dsa/microchip/ksz8795_reg.h +++ b/drivers/net/dsa/microchip/ksz8795_reg.h @@ -846,8 +846,6 @@ #define KS_PRIO_IN_REG 4 -#define TOTAL_PORT_NUM 5 - #define KSZ8795_COUNTER_NUM 0x20 /* Common names used by other drivers */ |