net: mdio: rename mdio_device reset to reset_gpio
This renames the GPIO reset of mdio devices from 'reset' to 'reset_gpio' to better differentiate between GPIO and reset-controller driven reset line. Signed-off-by: David Bauer <mail@david-bauer.net> Reviewed-by: Andrew Lunn <andrew@lunn.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
71dd6c0dff
commit
6110ed2db3
@@ -56,7 +56,7 @@ static int mdiobus_register_gpiod(struct mdio_device *mdiodev)
|
||||
return PTR_ERR(gpiod);
|
||||
}
|
||||
|
||||
mdiodev->reset = gpiod;
|
||||
mdiodev->reset_gpio = gpiod;
|
||||
|
||||
return 0;
|
||||
}
|
||||
@@ -469,8 +469,8 @@ void mdiobus_unregister(struct mii_bus *bus)
|
||||
if (!mdiodev)
|
||||
continue;
|
||||
|
||||
if (mdiodev->reset)
|
||||
gpiod_put(mdiodev->reset);
|
||||
if (mdiodev->reset_gpio)
|
||||
gpiod_put(mdiodev->reset_gpio);
|
||||
|
||||
mdiodev->device_remove(mdiodev);
|
||||
mdiodev->device_free(mdiodev);
|
||||
|
Reference in New Issue
Block a user