devices: acpi: Port GED device to Aml::append_aml_bytes()

Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
Rob Bradford 2021-11-04 17:12:59 +00:00
parent def371e969
commit a7786b4e0c

View File

@ -104,7 +104,7 @@ impl BusDevice for AcpiGedDevice {
#[cfg(feature = "acpi")]
impl Aml for AcpiGedDevice {
fn to_aml_bytes(&self) -> Vec<u8> {
fn append_aml_bytes(&self, bytes: &mut Vec<u8>) {
aml::Device::new(
"_SB_.GED_".into(),
vec![
@ -165,7 +165,7 @@ impl Aml for AcpiGedDevice {
),
],
)
.to_aml_bytes()
.append_aml_bytes(bytes)
}
}