summaryrefslogtreecommitdiff
path: root/src/ec/google
diff options
context:
space:
mode:
authorFelix Singer <felixsinger@posteo.net>2021-12-30 02:22:36 +0100
committerFelix Singer <felixsinger@posteo.net>2021-12-31 08:58:48 +0000
commit6b3a899bc4db6ca260d177a68f00fcc934beac83 (patch)
tree65ef4a0a821c566665aa6f0cd7ab8f0efad87700 /src/ec/google
parent1eba1968b54f581756bc964045269045e2ce1bf4 (diff)
ec/google/chromeec/acpi: Replace Subtract(a,b) with ASL 2.0 syntax
Replace `Subtract (a, b)` with `a - b`. Change-Id: Ib47fdb28c2047e001902345ad2f1b25fe5d8a152 Signed-off-by: Felix Singer <felixsinger@posteo.net> Reviewed-on: https://review.coreboot.org/c/coreboot/+/60498 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: HAOUAS Elyes <ehaouas@noos.fr>
Diffstat (limited to 'src/ec/google')
-rw-r--r--src/ec/google/chromeec/acpi/battery.asl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ec/google/chromeec/acpi/battery.asl b/src/ec/google/chromeec/acpi/battery.asl
index 7569728e05..0672885668 100644
--- a/src/ec/google/chromeec/acpi/battery.asl
+++ b/src/ec/google/chromeec/acpi/battery.asl
@@ -210,7 +210,7 @@ Method (BBST, 4, Serialized)
// See if within ~6% of full
ShiftRight (Local2, 4, 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)
}