]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: mdio: move device reset functions to mdio_device.c
authorBuday Csaba <buday.csaba@prolan.hu>
Tue, 18 Nov 2025 13:58:52 +0000 (14:58 +0100)
committerJakub Kicinski <kuba@kernel.org>
Fri, 21 Nov 2025 01:41:39 +0000 (17:41 -0800)
commit02aeff20e8f5ab5f7ebc64858239787d420d73c4
tree456d3b7efe431cbdd786094cf059683af7887975
parent9e203721ec6117b2f4436a26662413764fd669f0
net: mdio: move device reset functions to mdio_device.c

The functions mdiobus_register_gpiod() and mdiobus_register_reset()
handle the mdio device reset initialization, which belong to
mdio_device.c.
Move them from mdio_bus.c to mdio_device.c, and rename them to match
the corresponding source file: mdio_device_register_gpio() and
mdio_device_register_reset().
Remove 'static' qualifiers and declare them in
drivers/net/phy/mdio-private.h (new header file).

Signed-off-by: Buday Csaba <buday.csaba@prolan.hu>
Link: https://patch.msgid.link/5f684838ee897130f21b21beb07695eea4af8988.1763473655.git.buday.csaba@prolan.hu
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/phy/mdio-private.h [new file with mode: 0644]
drivers/net/phy/mdio_bus.c
drivers/net/phy/mdio_device.c