ec/quanta/it8518/acpi: Replace LAnd() with ASL 2.0 syntax
Replace `LAnd (a, b)` with `a && b`. Change-Id: I72604a0efa2d8fcdf39cf5a8b70082aeb32dddab Signed-off-by: Felix Singer <felixsinger@posteo.net> Reviewed-on: https://review.coreboot.org/c/coreboot/+/60464 Reviewed-by: HAOUAS Elyes <ehaouas@noos.fr> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
parent
83ba290f6d
commit
dac0408492
|
@ -306,7 +306,7 @@ Device (BATX)
|
|||
Store (ECRC, Local1)
|
||||
}
|
||||
|
||||
If (LAnd (BFWK, LAnd (ACPW, LNot (Local0))))
|
||||
If (BFWK && ACPW && LNot (Local0))
|
||||
{
|
||||
// On AC power and battery is neither charging
|
||||
// nor discharging. Linux expects a full battery
|
||||
|
@ -317,8 +317,7 @@ Device (BATX)
|
|||
|
||||
// See if within ~3% of full
|
||||
ShiftRight (Local2, 5, Local3)
|
||||
If (LAnd (LGreater (Local1, Subtract (Local2, Local3)),
|
||||
LLess (Local1, Add (Local2, Local3))))
|
||||
If (LGreater (Local1, Subtract (Local2, Local3)) && LLess (Local1, Add (Local2, Local3)))
|
||||
{
|
||||
Store (Local2, Local1)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue