summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Rudolph <siro@das-labor.org>2017-08-13 11:04:04 +0200
committerFelix Held <felix-coreboot@felixheld.de>2018-04-29 18:05:13 +0000
commitb1181c302f83b49c9fa2a70daf4becd9505d124b (patch)
treee5a28e8516798bde4239cb8f3ce5898dc9deca44
parent36a208dcf93ccce7792b3b88de24222a33207a45 (diff)
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>
-rw-r--r--src/drivers/lenovo/wacom.c13
1 files changed, 2 insertions, 11 deletions
diff --git a/src/drivers/lenovo/wacom.c b/src/drivers/lenovo/wacom.c
index d1464d76b6..f0f6ef8d35 100644
--- a/src/drivers/lenovo/wacom.c
+++ b/src/drivers/lenovo/wacom.c
@@ -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();
}