]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: microchip: common ksz_spi_probe for ksz switches
authorArun Ramadoss <arun.ramadoss@microchip.com>
Wed, 22 Jun 2022 09:04:25 +0000 (14:34 +0530)
committerDavid S. Miller <davem@davemloft.net>
Fri, 24 Jun 2022 10:31:44 +0000 (11:31 +0100)
commit591dcbe8b97c5185e0d784983f2eb69b5122d496
tree95f9438d10fdc27344332f38378f6444d2a5bb66
parent5e04efecd9b11d500f7fb0d1fda94edab7bdf0de
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>
drivers/net/dsa/microchip/Kconfig
drivers/net/dsa/microchip/Makefile
drivers/net/dsa/microchip/ksz8795_spi.c [deleted file]
drivers/net/dsa/microchip/ksz9477_spi.c [deleted file]
drivers/net/dsa/microchip/ksz_spi.c [new file with mode: 0644]