ec/google/wilco: Convert to ASL 2.0 syntax
Change-Id: Ie5c88f8acee16ff77f9707d7ed56436bf0d521b1
Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/46098
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Michael Niewöhner <foss@mniewoehner.de>
diff --git a/src/ec/google/wilco/acpi/dptf.asl b/src/ec/google/wilco/acpi/dptf.asl
index 705988a..6de72e8 100644
--- a/src/ec/google/wilco/acpi/dptf.asl
+++ b/src/ec/google/wilco/acpi/dptf.asl
@@ -96,7 +96,7 @@
Printf ("Sensor trip mask: %o", Local0)
- If (LNot (Acquire (^PATM, 1000))) {
+ If (!Acquire (^PATM, 1000)) {
/* Handle bits that are set */
While (FindSetRightBit (Local1, Local2))
diff --git a/src/ec/google/wilco/acpi/ec.asl b/src/ec/google/wilco/acpi/ec.asl
index 7531dbf..d552604 100644
--- a/src/ec/google/wilco/acpi/ec.asl
+++ b/src/ec/google/wilco/acpi/ec.asl
@@ -50,7 +50,7 @@
^UCSI.INIT ()
// Initialize LID switch state
- Store (R (P1LC), \LIDS)
+ \LIDS = R (P1LC)
}
/*
diff --git a/src/ec/google/wilco/acpi/lid.asl b/src/ec/google/wilco/acpi/lid.asl
index 3fae71f..c381499 100644
--- a/src/ec/google/wilco/acpi/lid.asl
+++ b/src/ec/google/wilco/acpi/lid.asl
@@ -8,7 +8,7 @@
Method (_LID, 0, NotSerialized)
{
- Store (R (P1LC), \LIDS)
+ \LIDS = R (P1LC)
Return (\LIDS)
}
}