tree: Replace Or(a,b,c) with ASL 2.0 syntax
Replace `Or (a, b, c)` with `c = a | b`, respectively `c |= b` where possible. Change-Id: Icf194b248075f290de90fb4bc4e9a0cd9d76ec61 Signed-off-by: Felix Singer <felixsinger@posteo.net> Reviewed-on: https://review.coreboot.org/c/coreboot/+/70846 Reviewed-by: Eric Lai <eric_lai@quanta.corp-partner.google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
@@ -235,7 +235,7 @@ Device (BATX)
|
||||
// Set critical flag if battery is empty
|
||||
If (And (HB0S, 0x0F) == 0)
|
||||
{
|
||||
Or (Local0, 4, Local0)
|
||||
Local0 |= 4
|
||||
}
|
||||
|
||||
Local1 = Zero
|
||||
@@ -254,7 +254,7 @@ Device (BATX)
|
||||
|
||||
// Flag if the battery level is critical
|
||||
And (Local0, 0x04, Local4)
|
||||
Or (Local1, Local4, Local1)
|
||||
Local1 |= Local4
|
||||
PBST[0] = Local1
|
||||
|
||||
//
|
||||
|
Reference in New Issue
Block a user