summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Singer <felixsinger@posteo.net>2021-12-30 02:26:32 +0100
committerFelix Singer <felixsinger@posteo.net>2021-12-31 08:59:59 +0000
commita13e3cd1dae9d53472a3f4e44ebe463a85b70021 (patch)
tree21f7278c9dca7e759ceead51fe518cc57552ea23
parentfbf01e1624a9187e885592454f82e66713e37556 (diff)
ec/smsc/mec1308/acpi: Replace Subtract(a,b) with ASL 2.0 syntax
Replace `Subtract (a, b)` with `a - b`. Change-Id: Ia736b0080848e029eaeae094f1d2cc12aace3730 Signed-off-by: Felix Singer <felixsinger@posteo.net> Reviewed-on: https://review.coreboot.org/c/coreboot/+/60501 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: HAOUAS Elyes <ehaouas@noos.fr>
-rw-r--r--src/ec/smsc/mec1308/acpi/battery.asl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ec/smsc/mec1308/acpi/battery.asl b/src/ec/smsc/mec1308/acpi/battery.asl
index bbbcfe225f..603b1d41a1 100644
--- a/src/ec/smsc/mec1308/acpi/battery.asl
+++ b/src/ec/smsc/mec1308/acpi/battery.asl
@@ -157,7 +157,7 @@ Device (BAT0)
// See if within ~3% of full
ShiftRight (Local2, 5, Local3)
- If (LGreater (Local1, Subtract (Local2, Local3)) &&
+ If (LGreater (Local1, Local2 - Local3) &&
LLess (Local1, Add (Local2, Local3)))
{
Store (Local2, Local1)