net: of_get_phy_mode: Change API to solve int/unit warnings