acpi_tables: aml: Implement Aml::append_aml_bytes() for Arg
Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
parent
c0ca6b5377
commit
50b6ee3947
1 changed files with 1 additions and 3 deletions
|
|
@ -842,11 +842,9 @@ impl<'a> Aml for LessThan<'a> {
|
|||
pub struct Arg(pub u8);
|
||||
|
||||
impl Aml for Arg {
|
||||
fn to_aml_bytes(&self) -> Vec<u8> {
|
||||
let mut bytes = Vec::new();
|
||||
fn append_aml_bytes(&self, bytes: &mut Vec<u8>) {
|
||||
assert!(self.0 <= 6);
|
||||
bytes.push(0x68 + self.0); /* Arg0Op */
|
||||
bytes
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue