From 27effb6257a6285d4bd8a6cda27aff2d49dd1db7 Mon Sep 17 00:00:00 2001 From: Astro Date: Wed, 29 Jul 2020 20:08:38 +0200 Subject: [PATCH] eth::phy: s/Marvel/Marvell/ --- libboard_zynq/src/eth/phy/mod.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/libboard_zynq/src/eth/phy/mod.rs b/libboard_zynq/src/eth/phy/mod.rs index bc22fd8..e3ff0f8 100644 --- a/libboard_zynq/src/eth/phy/mod.rs +++ b/libboard_zynq/src/eth/phy/mod.rs @@ -39,11 +39,11 @@ pub struct Phy { #[derive(Clone, Copy)] pub enum PhyDevice { - Marvel88E1116R, + Marvell88E1116R, Rtl8211E, } -const OUI_MARVEL: u32 = 0x005043; +const OUI_MARVELL: u32 = 0x005043; const OUI_REALTEK: u32 = 0x000732; impl Phy { @@ -52,10 +52,10 @@ impl Phy { for addr in 1..32 { let device = match identify_phy(pa, addr) { Some(PhyIdentifier { - oui: OUI_MARVEL, + oui: OUI_MARVELL, model: 36, .. - }) => Some(PhyDevice::Marvel88E1116R), + }) => Some(PhyDevice::Marvell88E1116R), Some(PhyIdentifier { oui: OUI_REALTEK, model: 0b010001, @@ -75,7 +75,7 @@ impl Phy { pub fn name(&self) -> &'static str { match self.device { - PhyDevice::Marvel88E1116R => &"Marvel 88E1116R", + PhyDevice::Marvell88E1116R => &"Marvell 88E1116R", PhyDevice::Rtl8211E => &"RTL8211E", } }