aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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();
}