net: dsa: mt7530: move p5_intf_modes() function to mt7530.c
authorDaniel Golle <daniel@makrotopia.org>
Mon, 3 Apr 2023 01:18:28 +0000 (02:18 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 3 Apr 2023 09:13:00 +0000 (10:13 +0100)
commit25d15dee34a1a40d5fd71636a205e3211f09fd1d
treebc2c588e259751a4e2cd01ad09bbd43d147f309c
parent1557c679f71c82a994eae0baadbaeb62b71e15bf
net: dsa: mt7530: move p5_intf_modes() function to mt7530.c

In preparation of splitting mt7530.c into a driver for MDIO-connected
as well as MDIO-accessed built-in switches on one hand and MMIO-accessed
built-in switches move the p5_inft_modes() function from mt7530.h to
mt7530.c. The function is only needed there and will trigger a compiler
warning about a defined but unused function otherwise when including
mt7530.h in the to-be-introduced bus-specific drivers.

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
drivers/net/dsa/mt7530.h