/* Description: Reads the ID registers of the PHY at @addr on the @bus, then allocates and returns the phy_device to represent it.  */
static struct phy_device* get_phy_device(struct mii_dev *bus, int addr, phy_interface_t interface)
/* Description: Reads the ID registers of the PHY at @addr on the @bus, then allocates and returns the phy_device to represent it.  */
static struct phy_device* get_phy_device(struct mii_dev *bus, int addr, phy_interface_t interface)
{
    return get_phy_device_by_mask(bus, 1 << addr, interface);
}