Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

acpi: spcr: fix typo #232

Merged
merged 1 commit into from
Nov 25, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading