From 0e6f7a23e493f312a640153e1f8e5068e81707b4 Mon Sep 17 00:00:00 2001 From: Felix Singer Date: Sun, 2 Jan 2022 01:55:32 +0100 Subject: [PATCH] ec/google/chromeec/acpi: Replace LGreater(a,b) with ASL 2.0 syntax Replace `LGreater(a, b)` with `a > b`. Change-Id: Ie6238ead464d79b3576846f3b5b92b658972eec8 Signed-off-by: Felix Singer Reviewed-on: https://review.coreboot.org/c/coreboot/+/60682 Tested-by: build bot (Jenkins) Reviewed-by: Tim Wawrzynczak --- src/ec/google/chromeec/acpi/battery.asl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ec/google/chromeec/acpi/battery.asl b/src/ec/google/chromeec/acpi/battery.asl index c4a787bbe1..4cc5ac45c2 100644 --- a/src/ec/google/chromeec/acpi/battery.asl +++ b/src/ec/google/chromeec/acpi/battery.asl @@ -210,7 +210,7 @@ Method (BBST, 4, Serialized) // See if within ~6% of full ShiftRight (Local2, 4, Local3) - If (LGreater (Local1, Local2 - Local3) && Local1 < Local2 + Local3) + If (Local1 > Local2 - Local3 && Local1 < Local2 + Local3) { Store (Local2, Local1) }