]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
net: dsa: mv88e6xxx: lookup switch name
authorVivien Didelot <vivien.didelot@savoirfairelinux.com>
Fri, 30 Oct 2015 23:39:48 +0000 (19:39 -0400)
committerDavid S. Miller <davem@davemloft.net>
Mon, 2 Nov 2015 20:54:13 +0000 (15:54 -0500)
commitb9b377136eb83cace5667cb6e8d53da771df6faa
tree5f9dd8e7b677a44f29fc3678a54ef40c14415816
parent3996a4ffb01f57f82abe6c7e60ac9048dd0c31df
net: dsa: mv88e6xxx: lookup switch name

All the mv88e6xxx drivers use the exact same code in their probe
function to lookup the switch name given its ID. Thus introduce a
mv88e6xxx_switch_id structure and a mv88e6xxx_lookup_name function in
the common mv88e6xxx code.

In the meantime make __mv88e6xxx_reg_{read,write} static since we do not
need to expose these low-level r/w routines anymore.

Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Acked-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/mv88e6123_61_65.c
drivers/net/dsa/mv88e6131.c
drivers/net/dsa/mv88e6171.c
drivers/net/dsa/mv88e6352.c
drivers/net/dsa/mv88e6xxx.c
drivers/net/dsa/mv88e6xxx.h