summaryrefslogtreecommitdiffstats
path: root/util/flashrom_tester/flashrom/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'util/flashrom_tester/flashrom/src/lib.rs')
-rw-r--r--util/flashrom_tester/flashrom/src/lib.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/util/flashrom_tester/flashrom/src/lib.rs b/util/flashrom_tester/flashrom/src/lib.rs
index 41393e841..e2c91499e 100644
--- a/util/flashrom_tester/flashrom/src/lib.rs
+++ b/util/flashrom_tester/flashrom/src/lib.rs
@@ -51,19 +51,19 @@ pub use libflashrom::{
#[derive(Copy, Clone, PartialEq, Eq, Debug)]
pub enum FlashChip {
- HOST,
+ INTERNAL,
}
impl FlashChip {
pub fn from(s: &str) -> Result<FlashChip, &str> {
match s {
- "host" => Ok(FlashChip::HOST),
+ "internal" => Ok(FlashChip::INTERNAL),
_ => Err("cannot convert str to enum"),
}
}
pub fn to(fc: FlashChip) -> &'static str {
match fc {
- FlashChip::HOST => "host",
+ FlashChip::INTERNAL => "internal",
}
}
@@ -80,7 +80,7 @@ impl FlashChip {
/// disabled.
pub fn can_control_hw_wp(&self) -> bool {
match self {
- FlashChip::HOST => true,
+ FlashChip::INTERNAL => true,
}
}
}