summaryrefslogtreecommitdiffstats
path: root/drivers/net/dsa/microchip/Makefile
diff options
context:
space:
mode:
authorArun Ramadoss <arun.ramadoss@microchip.com>2022-06-22 11:04:25 +0200
committerDavid S. Miller <davem@davemloft.net>2022-06-24 12:31:44 +0200
commit4658f2fe8fbcb12c1db0577ad9c46b67f10d09f1 (patch)
tree95f9438d10fdc27344332f38378f6444d2a5bb66 /drivers/net/dsa/microchip/Makefile
parentnet: dsa: microchip: remove the ksz8/ksz9477_switch_register (diff)
downloadlinux-4658f2fe8fbcb12c1db0577ad9c46b67f10d09f1.tar.xz
linux-4658f2fe8fbcb12c1db0577ad9c46b67f10d09f1.zip
net: dsa: microchip: common ksz_spi_probe for ksz switches
As of now, there are two spi probes, one ksz8795_spi.c and other ksz9477_spi.c. This patch combines two files into single ksz_spi.c. The difference between the two are regmap config and struct ksz8. The regmap config is assigned based on the platform data. And struct ksz8 is left untouched, as it is used only ksz8795.c. It can be used for all other switches also in future. Signed-off-by: Arun Ramadoss <arun.ramadoss@microchip.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/dsa/microchip/Makefile')
-rw-r--r--drivers/net/dsa/microchip/Makefile3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/dsa/microchip/Makefile b/drivers/net/dsa/microchip/Makefile
index 4cf4755e6426..b2ba7c1bcb93 100644
--- a/drivers/net/dsa/microchip/Makefile
+++ b/drivers/net/dsa/microchip/Makefile
@@ -4,6 +4,5 @@ ksz_switch-objs := ksz_common.o
ksz_switch-objs += ksz9477.o
ksz_switch-objs += ksz8795.o
obj-$(CONFIG_NET_DSA_MICROCHIP_KSZ9477_I2C) += ksz9477_i2c.o
-obj-$(CONFIG_NET_DSA_MICROCHIP_KSZ9477_SPI) += ksz9477_spi.o
-obj-$(CONFIG_NET_DSA_MICROCHIP_KSZ8795_SPI) += ksz8795_spi.o
+obj-$(CONFIG_NET_DSA_MICROCHIP_KSZ_SPI) += ksz_spi.o
obj-$(CONFIG_NET_DSA_MICROCHIP_KSZ8863_SMI) += ksz8863_smi.o