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:
Patrick Rudolph 2017-08-13 11:04:04 +02:00 committed by Felix Held
parent 36a208dcf9
commit b1181c302f
1 changed files with 2 additions and 11 deletions

View File

@ -105,11 +105,7 @@ drivers_lenovo_serial_ports_ssdt_generate(const char *scope,
acpigen_write_resourcetemplate_footer();
acpigen_write_method("_STA", 0);
/* return */
acpigen_emit_byte(0xa4);
acpigen_write_byte(0xf);
acpigen_pop_len();
acpigen_write_STA(0xf);
acpigen_pop_len();
}
@ -131,12 +127,7 @@ drivers_lenovo_serial_ports_ssdt_generate(const char *scope,
acpigen_write_resourcetemplate_footer();
/* method op */
acpigen_write_method("_STA", 0);
/* return */
acpigen_emit_byte(0xa4);
acpigen_write_byte(0xf);
acpigen_pop_len();
acpigen_write_STA(0xf);
acpigen_pop_len();
}