summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEgil Hjelmeland <privat@egil-hjelmeland.no>2017-08-05 13:05:47 +0200
committerDavid S. Miller <davem@davemloft.net>2017-08-07 14:18:01 -0700
commita368ca537889d6baff24fd05a903c3625f2906cc (patch)
tree745023da75c21ecc9439448497e45b014a6b32f5
parent451d3ca0a0192def659c00f024718d8b59a3ef47 (diff)
downloadlinux-a368ca537889d6baff24fd05a903c3625f2906cc.tar.gz
linux-a368ca537889d6baff24fd05a903c3625f2906cc.tar.bz2
linux-a368ca537889d6baff24fd05a903c3625f2906cc.zip
net: dsa: lan9303: define LAN9303_NUM_PORTS 3
Will be used instead of '3' in upcomming patches. Signed-off-by: Egil Hjelmeland <privat@egil-hjelmeland.no> Signed-off-by: Andrew Lunn <andrew@lunn.ch> Reviewed-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--drivers/net/dsa/lan9303-core.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/dsa/lan9303-core.c b/drivers/net/dsa/lan9303-core.c
index 77f3cee3af0d..49e3a0cb1b5b 100644
--- a/drivers/net/dsa/lan9303-core.c
+++ b/drivers/net/dsa/lan9303-core.c
@@ -20,6 +20,8 @@
#include "lan9303.h"
+#define LAN9303_NUM_PORTS 3
+
/* 13.2 System Control and Status Registers
* Multiply register number by 4 to get address offset.
*/