Felix Singer has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/60464 )
Change subject: ec/quanta/it8518/acpi: Replace LAnd() operations with ACPI 2.0 syntax ......................................................................
ec/quanta/it8518/acpi: Replace LAnd() operations with ACPI 2.0 syntax
Replace `LAnd (a, b)` with `a && b`.
Change-Id: I72604a0efa2d8fcdf39cf5a8b70082aeb32dddab Signed-off-by: Felix Singer felixsinger@posteo.net --- M src/ec/quanta/it8518/acpi/battery.asl 1 file changed, 2 insertions(+), 3 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/64/60464/1
diff --git a/src/ec/quanta/it8518/acpi/battery.asl b/src/ec/quanta/it8518/acpi/battery.asl index adbde93..de51206 100644 --- a/src/ec/quanta/it8518/acpi/battery.asl +++ b/src/ec/quanta/it8518/acpi/battery.asl @@ -306,7 +306,7 @@ 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 @@
// 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) }