summaryrefslogtreecommitdiff
path: root/src/ec
diff options
context:
space:
mode:
authorFelix Singer <felixsinger@posteo.net>2022-12-16 04:27:21 +0100
committerFelix Held <felix-coreboot@felixheld.de>2022-12-19 16:20:23 +0000
commit274fa64e3df65a3afaa811ffa757d483f7c6d3cf (patch)
treeaef00e6082e9c64e9ff0cc67ee8c3be8ef489cdd /src/ec
parent251d86bad1f3fb78eaa0fd93798644c5f8bb295c (diff)
tree: Replace Or(a,b) with ASL 2.0 syntax
Replace `Or (a, b)` with `a | b`. Change-Id: I73842cd4843ebb0b48440059ae9dcf6c82235a76 Signed-off-by: Felix Singer <felixsinger@posteo.net> Reviewed-on: https://review.coreboot.org/c/coreboot/+/70845 Reviewed-by: Eric Lai <eric_lai@quanta.corp-partner.google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Elyes Haouas <ehaouas@noos.fr>
Diffstat (limited to 'src/ec')
-rw-r--r--src/ec/lenovo/h8/acpi/battery.asl4
-rw-r--r--src/ec/lenovo/h8/acpi/ec.asl2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/ec/lenovo/h8/acpi/battery.asl b/src/ec/lenovo/h8/acpi/battery.asl
index ae07540fbc..392a8ed441 100644
--- a/src/ec/lenovo/h8/acpi/battery.asl
+++ b/src/ec/lenovo/h8/acpi/battery.asl
@@ -149,7 +149,7 @@ Method(BSTA, 4, NotSerialized)
Method(BINF, 2, Serialized)
{
Acquire(ECLK, 0xffff)
- ^BPAG(Or(1, Arg1)) /* Battery 0 static information */
+ ^BPAG(1 | Arg1) /* Battery 0 static information */
Arg0 [0] = BAMA ^ 1
Local0 = BAMA
^BPAG(Arg1)
@@ -181,7 +181,7 @@ Method(BINF, 2, Serialized)
}
Arg0 [10] = SERN // Serial Number
- ^BPAG(Or(4, Arg1))
+ ^BPAG(4 | Arg1)
Name (TYPE, Buffer() { 0, 0, 0, 0, 0 })
TYPE = BATY
Arg0 [11] = TYPE // Battery type
diff --git a/src/ec/lenovo/h8/acpi/ec.asl b/src/ec/lenovo/h8/acpi/ec.asl
index 314ab04a85..95841d3dd6 100644
--- a/src/ec/lenovo/h8/acpi/ec.asl
+++ b/src/ec/lenovo/h8/acpi/ec.asl
@@ -92,7 +92,7 @@ Device(EC)
/* Not used for coreboot. Provided for compatibility with thinkpad-acpi. */
Method (LED, 2, NotSerialized)
{
- TLED(Or(Arg0, Arg1))
+ TLED(Arg0 | Arg1)
}
Method (_INI, 0, NotSerialized)