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>
This commit is contained in:
parent
251d86bad1
commit
274fa64e3d
|
@ -58,7 +58,7 @@
|
|||
Local1 = 255
|
||||
}
|
||||
/* also set valid bit */
|
||||
BCLP = Or (Local1, 0x80000000)
|
||||
BCLP = Local1 | 0x80000000
|
||||
|
||||
If (ARDY == 0)
|
||||
{
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue