drvs/lenovo/wacom: Clean ACPI code
Use acpigen method to return _STA instead of hardcoding unreadable bytecode. Change-Id: I290fb918675857e8ef798e3ab820bcfbdc6f5bdc Signed-off-by: Patrick Rudolph <siro@das-labor.org> Reviewed-on: https://review.coreboot.org/20982 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
This commit is contained in:
parent
36a208dcf9
commit
b1181c302f
@ -105,11 +105,7 @@ drivers_lenovo_serial_ports_ssdt_generate(const char *scope,
|
|||||||
|
|
||||||
acpigen_write_resourcetemplate_footer();
|
acpigen_write_resourcetemplate_footer();
|
||||||
|
|
||||||
acpigen_write_method("_STA", 0);
|
acpigen_write_STA(0xf);
|
||||||
/* return */
|
|
||||||
acpigen_emit_byte(0xa4);
|
|
||||||
acpigen_write_byte(0xf);
|
|
||||||
acpigen_pop_len();
|
|
||||||
|
|
||||||
acpigen_pop_len();
|
acpigen_pop_len();
|
||||||
}
|
}
|
||||||
@ -131,12 +127,7 @@ drivers_lenovo_serial_ports_ssdt_generate(const char *scope,
|
|||||||
|
|
||||||
acpigen_write_resourcetemplate_footer();
|
acpigen_write_resourcetemplate_footer();
|
||||||
|
|
||||||
/* method op */
|
acpigen_write_STA(0xf);
|
||||||
acpigen_write_method("_STA", 0);
|
|
||||||
/* return */
|
|
||||||
acpigen_emit_byte(0xa4);
|
|
||||||
acpigen_write_byte(0xf);
|
|
||||||
acpigen_pop_len();
|
|
||||||
|
|
||||||
acpigen_pop_len();
|
acpigen_pop_len();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user