summaryrefslogtreecommitdiff
path: root/src/ec
diff options
context:
space:
mode:
authorFelix Singer <felixsinger@posteo.net>2021-12-30 02:49:25 +0100
committerFelix Singer <felixsinger@posteo.net>2021-12-31 09:02:18 +0000
commitd8cf9626e802a49a16b8455e86a8f6d618cbe1ea (patch)
tree1328ed3c7115e00ac12148517caf8c3e7391a718 /src/ec
parent5f013f7eb23edf80416af3d9f04617d7792a528a (diff)
ec/quanta/it8518/acpi: Replace Add(a,b) with ASL 2.0 syntax
Replace `Add (a, b)` with `a + b`. Change-Id: I5ed8c8a8cfc92b0af1602bee15cd6971536b61ad Signed-off-by: Felix Singer <felixsinger@posteo.net> Reviewed-on: https://review.coreboot.org/c/coreboot/+/60506 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: HAOUAS Elyes <ehaouas@noos.fr>
Diffstat (limited to 'src/ec')
-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 001502106e..9c4844242b 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) && LLess (Local1, Add (Local2, Local3)))
+ If (LGreater (Local1, Local2 - Local3) && LLess (Local1, Local2 + Local3))
{
Store (Local2, Local1)
}