acpi_tables: aml: Implement Aml::append_aml_bytes() for Arg

Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
Rob Bradford 2021-11-03 14:29:05 +00:00
parent c0ca6b5377
commit 50b6ee3947

View File

@ -842,11 +842,9 @@ impl<'a> Aml for LessThan<'a> {
pub struct Arg(pub u8); pub struct Arg(pub u8);
impl Aml for Arg { impl Aml for Arg {
fn to_aml_bytes(&self) -> Vec<u8> { fn append_aml_bytes(&self, bytes: &mut Vec<u8>) {
let mut bytes = Vec::new();
assert!(self.0 <= 6); assert!(self.0 <= 6);
bytes.push(0x68 + self.0); /* Arg0Op */ bytes.push(0x68 + self.0); /* Arg0Op */
bytes
} }
} }