Skip to content

Commit

Permalink
acpi: spcr: fix typo (#232)
Browse files Browse the repository at this point in the history
Change SpcrInteraceType to SpcrInterfaceType
  • Loading branch information
00xc authored Nov 25, 2024
1 parent c99c032 commit 49b0da8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions acpi/src/spcr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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).
Expand Down Expand Up @@ -256,7 +256,7 @@ pub enum SpcrInteraceType {
Unknown(u8),
}

impl From<u8> for SpcrInteraceType {
impl From<u8> for SpcrInterfaceType {
fn from(val: u8) -> Self {
match val {
0x00 => Self::Full16550,
Expand Down

0 comments on commit 49b0da8

Please sign in to comment.