From 8827c559adb0d1288d27a0daa1265f641f35b635 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20L=C3=B3pez?= Date: Fri, 22 Nov 2024 15:22:01 +0100 Subject: [PATCH] acpi: spcr: fix typo Change SpcrInteraceType to SpcrInterfaceType --- acpi/src/spcr.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/acpi/src/spcr.rs b/acpi/src/spcr.rs index d38e47da..5649dde4 100644 --- a/acpi/src/spcr.rs +++ b/acpi/src/spcr.rs @@ -63,8 +63,8 @@ unsafe impl AcpiTable for Spcr { impl Spcr { /// Gets the type of the register interface. - pub fn interface_type(&self) -> SpcrInteraceType { - SpcrInteraceType::from(self.interface_type) + pub fn interface_type(&self) -> SpcrInterfaceType { + SpcrInterfaceType::from(self.interface_type) } /// The base address of the Serial Port register set, if if console @@ -209,7 +209,7 @@ bitflags::bitflags! { #[repr(u8)] #[derive(Clone, Copy, Debug)] -pub enum SpcrInteraceType { +pub enum SpcrInterfaceType { /// Full 16550 interface Full16550, /// Full 16450 interface (must also accept writing to the 16550 FCR register). @@ -256,7 +256,7 @@ pub enum SpcrInteraceType { Unknown(u8), } -impl From for SpcrInteraceType { +impl From for SpcrInterfaceType { fn from(val: u8) -> Self { match val { 0x00 => Self::Full16550,