diff options
author | Vivien Didelot <vivien.didelot@savoirfairelinux.com> | 2017-06-12 12:37:43 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-06-13 11:23:12 -0400 |
commit | 2a4614e4ef0bef05a3f06f1a4481c9887e418e13 (patch) | |
tree | f8e15addbe85776420819b9994e7c942317f0e2f /drivers/net/dsa/mv88e6xxx/chip.c | |
parent | 2cb8cb144eef6b3175e95504eae7f385bdb35c69 (diff) | |
download | lwn-2a4614e4ef0bef05a3f06f1a4481c9887e418e13.tar.gz lwn-2a4614e4ef0bef05a3f06f1a4481c9887e418e13.zip |
net: dsa: mv88e6xxx: prefix Port Association Vector macros
For implicit namespacing and clarity, prefix the common Port Association
Vector Register macros with MV88E6XXX_PORT_ASSOC_VECTOR.
Document the register and prefer ordered hex masks values for all
Marvell 16-bit registers.
Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/dsa/mv88e6xxx/chip.c')
-rw-r--r-- | drivers/net/dsa/mv88e6xxx/chip.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/dsa/mv88e6xxx/chip.c b/drivers/net/dsa/mv88e6xxx/chip.c index 8146c94e394d..e04e780ffe90 100644 --- a/drivers/net/dsa/mv88e6xxx/chip.c +++ b/drivers/net/dsa/mv88e6xxx/chip.c @@ -1892,7 +1892,8 @@ static int mv88e6xxx_setup_port(struct mv88e6xxx_chip *chip, int port) if (dsa_is_cpu_port(ds, port)) reg = 0; - err = mv88e6xxx_port_write(chip, port, PORT_ASSOC_VECTOR, reg); + err = mv88e6xxx_port_write(chip, port, MV88E6XXX_PORT_ASSOC_VECTOR, + reg); if (err) return err; |