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>
This commit is contained in:
Felix Singer 2021-12-30 02:49:25 +01:00
parent 5f013f7eb2
commit d8cf9626e8

View file

@ -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)
}