Skip to content

Commit c9009f1

Browse files
bchaliosroypat
authored andcommitted
fix: naming of types in acpi-tables
We were calling stuff "Cachable" instead of "Cacheable". Signed-off-by: Babis Chalios <[email protected]>
1 parent ffebf33 commit c9009f1

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/acpi-tables/src/aml.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ enum AddressSpaceType {
406406
}
407407

408408
#[derive(Copy, Clone)]
409-
pub enum AddressSpaceCachable {
409+
pub enum AddressSpaceCacheable {
410410
NotCacheable,
411411
Cacheable,
412412
WriteCombining,
@@ -421,7 +421,7 @@ pub struct AddressSpace<T> {
421421
}
422422

423423
impl<T> AddressSpace<T> {
424-
pub fn new_memory(cacheable: AddressSpaceCachable, read_write: bool, min: T, max: T) -> Self {
424+
pub fn new_memory(cacheable: AddressSpaceCacheable, read_write: bool, min: T, max: T) -> Self {
425425
AddressSpace {
426426
r#type: AddressSpaceType::Memory,
427427
min,
@@ -1384,13 +1384,13 @@ mod tests {
13841384
"_CRS".try_into().unwrap(),
13851385
&ResourceTemplate::new(vec![
13861386
&AddressSpace::new_memory(
1387-
AddressSpaceCachable::Cacheable,
1387+
AddressSpaceCacheable::Cacheable,
13881388
true,
13891389
0xa_0000u32,
13901390
0xb_ffffu32
13911391
),
13921392
&AddressSpace::new_memory(
1393-
AddressSpaceCachable::NotCacheable,
1393+
AddressSpaceCacheable::NotCacheable,
13941394
true,
13951395
0xc000_0000u32,
13961396
0xfebf_ffffu32
@@ -1416,7 +1416,7 @@ mod tests {
14161416
Name::new(
14171417
"_CRS".try_into().unwrap(),
14181418
&ResourceTemplate::new(vec![&AddressSpace::new_memory(
1419-
AddressSpaceCachable::Cacheable,
1419+
AddressSpaceCacheable::Cacheable,
14201420
true,
14211421
0x8_0000_0000u64,
14221422
0xf_ffff_ffffu64
@@ -1984,7 +1984,7 @@ mod tests {
19841984
&Name::new(
19851985
"MR64".try_into().unwrap(),
19861986
&ResourceTemplate::new(vec![&AddressSpace::new_memory(
1987-
AddressSpaceCachable::Cacheable,
1987+
AddressSpaceCacheable::Cacheable,
19881988
true,
19891989
0x0000_0000_0000_0000u64,
19901990
0xFFFF_FFFF_FFFF_FFFEu64

0 commit comments

Comments
 (0)