[PATCH 6.12 207/512] net: phy: fix up const issues in to_mdio_device() and to_phy_device()