diff options
author | Felix Singer <felixsinger@posteo.net> | 2021-12-30 02:25:30 +0100 |
---|---|---|
committer | Felix Singer <felixsinger@posteo.net> | 2021-12-31 08:59:43 +0000 |
commit | fbf01e1624a9187e885592454f82e66713e37556 (patch) | |
tree | fae50a3f9f112d147e4148bda85f38511b80a6f5 | |
parent | 34c4a51d1bbc1667d5ebc8b6daa6308e828503e0 (diff) |
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>
-rw-r--r-- | src/ec/quanta/it8518/acpi/battery.asl | 2 |
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 92947332de..001502106e 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, Subtract (Local2, Local3)) && LLess (Local1, Add (Local2, Local3))) + If (LGreater (Local1, Local2 - Local3) && LLess (Local1, Add (Local2, Local3))) { Store (Local2, Local1) } |