ec/quanta/it8518/acpi: Replace Subtract(a,b) with ASL 2.0 syntax

Replace `Subtract (a, b)` with `a - b`.

Change-Id: Ibdc3faa5c888b1bd0e5234ed8185dcf29b2f1d4d
Signed-off-by: Felix Singer <felixsinger@posteo.net>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/60500
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:25:30 +01:00
parent 34c4a51d1b
commit fbf01e1624
1 changed files with 1 additions and 1 deletions

View File

@ -317,7 +317,7 @@ Device (BATX)
// See if within ~3% of full
ShiftRight (Local2, 5, Local3)
If (LGreater (Local1, Subtract (Local2, Local3)) && LLess (Local1, Add (Local2, Local3)))
If (LGreater (Local1, Local2 - Local3) && LLess (Local1, Add (Local2, Local3)))
{
Store (Local2, Local1)
}