summaryrefslogtreecommitdiff
path: root/src/ec/google/chromeec/acpi
diff options
context:
space:
mode:
authorFelix Singer <felixsinger@posteo.net>2022-01-02 01:55:32 +0100
committerPaul Fagerburg <pfagerburg@chromium.org>2022-06-03 15:29:36 +0000
commit0e6f7a23e493f312a640153e1f8e5068e81707b4 (patch)
tree92c69ee925fcae33f41623e924ffe0569486e3e7 /src/ec/google/chromeec/acpi
parent510a55d4eeaeb32047c17328ef238b55b89e7296 (diff)
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 <felixsinger@posteo.net> Reviewed-on: https://review.coreboot.org/c/coreboot/+/60682 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
Diffstat (limited to 'src/ec/google/chromeec/acpi')
-rw-r--r--src/ec/google/chromeec/acpi/battery.asl2
1 files changed, 1 insertions, 1 deletions
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)
}