summaryrefslogtreecommitdiffstats
path: root/src/ec
diff options
context:
space:
mode:
authorFelix Singer <felixsinger@posteo.net>2021-12-30 01:24:18 +0100
committerFelix Singer <felixsinger@posteo.net>2021-12-31 00:25:05 +0000
commit103f89a20072980e86fe156f429c7cb6271abd8c (patch)
treeaec4baa65392ebec30e018d9971d50c36c6e14f9 /src/ec
parent3a46206c08be1b51e764b7dc7ca6cf1490053197 (diff)
downloadcoreboot-103f89a20072980e86fe156f429c7cb6271abd8c.tar.gz
coreboot-103f89a20072980e86fe156f429c7cb6271abd8c.tar.bz2
coreboot-103f89a20072980e86fe156f429c7cb6271abd8c.zip
ec/hp/kbc1126/acpi: Replace Add(a,b,c) with ASL 2.0 syntax
Replace `Add (a, b, c)` with `c = a + b`. Change-Id: I48d471730d36200f5496effaad00a06222be85d9 Signed-off-by: Felix Singer <felixsinger@posteo.net> Reviewed-on: https://review.coreboot.org/c/coreboot/+/60485 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: HAOUAS Elyes <ehaouas@noos.fr>
Diffstat (limited to 'src/ec')
-rw-r--r--src/ec/hp/kbc1126/acpi/battery.asl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ec/hp/kbc1126/acpi/battery.asl b/src/ec/hp/kbc1126/acpi/battery.asl
index 5a6e5dcc642d..5a5632b92a3b 100644
--- a/src/ec/hp/kbc1126/acpi/battery.asl
+++ b/src/ec/hp/kbc1126/acpi/battery.asl
@@ -230,7 +230,7 @@ Method (\ISTR, 2, Serialized)
{
Local1--
Divide (Local0, 10, Local2, Local0)
- Add (Local2, 48, NUMB[Local1])
+ NUMB[Local1] = Local2 + 48
}
ToString (NUMB, Arg1, Local3)
Return (Local3)