]> 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)
commit3b8c7d10bce88a243183d54b485fbf6c6e60b044
tree95f9438d10fdc27344332f38378f6444d2a5bb66
parentb2d922c1b2549faabfc807c6fcbc78c85566827b
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]