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)
commitc2ac4d2ac5347a0d2aaabf3eca5ba2478d0617a9
tree40b3adeec3158200ff78f19fa50efe5f2c082ad4
parent4b5baca0403e2b6308e68938dc4d94912f5b8e28
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