net: phy: realtek: use generic MDIO helpers to simplify the code