]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: microchip: ksz8795: move cpu_select_interface to extra function
authorMichael Grzeschik <m.grzeschik@pengutronix.de>
Tue, 27 Apr 2021 07:09:02 +0000 (09:09 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 27 Apr 2021 21:13:23 +0000 (14:13 -0700)
commitbc2c06cda24fc5c370a083fd91b2806b95d80cd7
tree40b3adeec3158200ff78f19fa50efe5f2c082ad4
parent35dddc9f5ad9cd989561a8c7fc4cf71c49a03605
net: dsa: microchip: ksz8795: move cpu_select_interface to extra function

This patch moves the cpu interface selection code to a individual
function specific for ksz8795. It will make it simpler to customize the
code path for different switches supported by this driver.

Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de>
Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/microchip/ksz8795.c