From 2318677866eb62df0a7ef2dd29f8970598822beb Mon Sep 17 00:00:00 2001 From: Felix Singer Date: Wed, 29 Dec 2021 15:45:24 +0100 Subject: ec/google/chromeec/acpi: Replace LAnd() with ASL 2.0 syntax Replace `LAnd (a, b)` with `a && b`. Change-Id: I7d74e6a2ce4ee98c1c0f5b412e20661c5196735e Signed-off-by: Felix Singer Reviewed-on: https://review.coreboot.org/c/coreboot/+/60465 Tested-by: build bot (Jenkins) Reviewed-by: HAOUAS Elyes --- src/ec/google/chromeec/acpi/battery.asl | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/ec') diff --git a/src/ec/google/chromeec/acpi/battery.asl b/src/ec/google/chromeec/acpi/battery.asl index fc9edc9d90..7569728e05 100644 --- a/src/ec/google/chromeec/acpi/battery.asl +++ b/src/ec/google/chromeec/acpi/battery.asl @@ -201,7 +201,7 @@ Method (BBST, 4, Serialized) // 2: BATTERY REMAINING CAPACITY // Store (BTRA, Local1) - If (LAnd (Arg3, LAnd (ACEX, LNot (LAnd (BFDC, BFCG))))) { + If (Arg3 && ACEX && LNot (BFDC && BFCG)) { // On AC power and battery is neither charging // nor discharging. Linux expects a full battery // to report same capacity as last full charge. @@ -210,8 +210,7 @@ Method (BBST, 4, Serialized) // See if within ~6% of full ShiftRight (Local2, 4, 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