net: dsa: microchip: break KSZ9477 DSA driver into two files
authorTristram Ha <Tristram.Ha@microchip.com>
Tue, 20 Nov 2018 23:55:09 +0000 (15:55 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 21 Nov 2018 04:57:12 +0000 (20:57 -0800)
commitc2e866911e2540677c31ee009d8f75cdb4c023aa
tree943fcc7d7b7fe8bf4fd20cd33f259d2605b9e54d
parent74a7194f15b33789f2423391d4c4e26fa96db752
net: dsa: microchip: break KSZ9477 DSA driver into two files

Break KSZ9477 DSA driver into two files in preparation to add more KSZ
switch drivers.
Add common functions in ksz_common.h so that other KSZ switch drivers
can access code in ksz_common.c.
Add ksz_spi.h for common functions used by KSZ switch SPI drivers.

Signed-off-by: Tristram Ha <Tristram.Ha@microchip.com>
Reviewed-by: Woojung Huh <Woojung.Huh@microchip.com>
Reviewed-by: Pavel Machek <pavel@ucw.cz>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/microchip/Kconfig
drivers/net/dsa/microchip/Makefile
drivers/net/dsa/microchip/ksz9477.c [new file with mode: 0644]
drivers/net/dsa/microchip/ksz9477_spi.c
drivers/net/dsa/microchip/ksz_common.c
drivers/net/dsa/microchip/ksz_common.h [new file with mode: 0644]
drivers/net/dsa/microchip/ksz_priv.h
drivers/net/dsa/microchip/ksz_spi.h [new file with mode: 0644]