summaryrefslogtreecommitdiff
path: root/src/ec/quanta
diff options
context:
space:
mode:
authorFelix Singer <felixsinger@posteo.net>2022-01-02 01:58:55 +0100
committerFelix Singer <felixsinger@posteo.net>2022-06-09 09:17:21 +0000
commit0375b828f96cffbb0da1b093c458ba51f2c4cc24 (patch)
treea5d2dedbfc4d48f1aa4affb45cea6b3c6fb4e7a7 /src/ec/quanta
parenta484bba667a175b4db23104ffd9897c5ff340854 (diff)
ec/quanta/it8518/acpi: Replace LGreater(a,b) with ASL 2.0 syntax
Replace `LGreater(a, b)` with `a > b`. Change-Id: I86a11ab5d2667661af3491174001001e644083e3 Signed-off-by: Felix Singer <felixsinger@posteo.net> Reviewed-on: https://review.coreboot.org/c/coreboot/+/60685 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Sean Rhodes <sean@starlabs.systems>
Diffstat (limited to 'src/ec/quanta')
-rw-r--r--src/ec/quanta/it8518/acpi/battery.asl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ec/quanta/it8518/acpi/battery.asl b/src/ec/quanta/it8518/acpi/battery.asl
index 1e0fed6436..67843fd3e5 100644
--- a/src/ec/quanta/it8518/acpi/battery.asl
+++ b/src/ec/quanta/it8518/acpi/battery.asl
@@ -317,7 +317,7 @@ Device (BATX)
// See if within ~3% of full
ShiftRight (Local2, 5, Local3)
- If (LGreater (Local1, Local2 - Local3) && Local1 < Local2 + Local3)
+ If (Local1 > Local2 - Local3 && Local1 < Local2 + Local3)
{
Store (Local2, Local1)
}