net: dsa: mt7530: split-off common parts from mt7531_setup
authorDaniel Golle <daniel@makrotopia.org>
Mon, 3 Apr 2023 01:19:02 +0000 (02:19 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 3 Apr 2023 09:13:00 +0000 (10:13 +0100)
commit7f54cc9772ced2d76ac11832f0ada43798443ac9
tree3bbd5b41c6a1530d1683ebd566ae4c6801028506
parent720d736351761574af02ed093658ab60de60576c
net: dsa: mt7530: split-off common parts from mt7531_setup

MT7988 shares a significant part of the setup function with MT7531.
Split-off those parts into a shared function which is going to be used
also by mt7988_setup.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/mt7530.c