From dac04084927b84373dc89349b2c5efc2cf68a78c Mon Sep 17 00:00:00 2001 From: Felix Singer Date: Wed, 29 Dec 2021 15:40:05 +0100 Subject: 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 Reviewed-on: https://review.coreboot.org/c/coreboot/+/60464 Reviewed-by: HAOUAS Elyes Tested-by: build bot (Jenkins) --- src/ec/quanta/it8518/acpi/battery.asl | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/ec') diff --git a/src/ec/quanta/it8518/acpi/battery.asl b/src/ec/quanta/it8518/acpi/battery.asl index adbde93044..de51206007 100644 --- a/src/ec/quanta/it8518/acpi/battery.asl +++ b/src/ec/quanta/it8518/acpi/battery.asl @@ -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) } -- cgit v1.2.3