Skip to content

Commit 49b0da8

Browse files
authored
acpi: spcr: fix typo (#232)
Change SpcrInteraceType to SpcrInterfaceType
1 parent c99c032 commit 49b0da8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

acpi/src/spcr.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ unsafe impl AcpiTable for Spcr {
6363

6464
impl Spcr {
6565
/// Gets the type of the register interface.
66-
pub fn interface_type(&self) -> SpcrInteraceType {
67-
SpcrInteraceType::from(self.interface_type)
66+
pub fn interface_type(&self) -> SpcrInterfaceType {
67+
SpcrInterfaceType::from(self.interface_type)
6868
}
6969

7070
/// The base address of the Serial Port register set, if if console
@@ -209,7 +209,7 @@ bitflags::bitflags! {
209209

210210
#[repr(u8)]
211211
#[derive(Clone, Copy, Debug)]
212-
pub enum SpcrInteraceType {
212+
pub enum SpcrInterfaceType {
213213
/// Full 16550 interface
214214
Full16550,
215215
/// Full 16450 interface (must also accept writing to the 16550 FCR register).
@@ -256,7 +256,7 @@ pub enum SpcrInteraceType {
256256
Unknown(u8),
257257
}
258258

259-
impl From<u8> for SpcrInteraceType {
259+
impl From<u8> for SpcrInterfaceType {
260260
fn from(val: u8) -> Self {
261261
match val {
262262
0x00 => Self::Full16550,

0 commit comments

Comments
 (0)