summaryrefslogtreecommitdiff
path: root/src/ec
diff options
context:
space:
mode:
authorFelix Singer <felixsinger@posteo.net>2021-12-30 01:09:03 +0100
committerFelix Singer <felixsinger@posteo.net>2021-12-31 00:23:12 +0000
commitf00caca13e6d1f59ead3e72e8ac5f400f7510835 (patch)
tree726ad9e39ba65e4f9e9c23b11cc6d8ab55f2c1d0 /src/ec
parentcb9f038ec5dc6e48107539e1d6c0ec799ee13168 (diff)
ec/quanta/it8518/acpi: Replace Subtract(a,b,c) with ASL 2.0 syntax
Replace `Subtract (a, b, c)` with `c = a - b`. Change-Id: Ifcdc29dbc3874180bd0692260ea250a1a6c86d41 Signed-off-by: Felix Singer <felixsinger@posteo.net> Reviewed-on: https://review.coreboot.org/c/coreboot/+/60480 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/quanta/it8518/acpi/battery.asl2
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 de51206007..92947332de 100644
--- a/src/ec/quanta/it8518/acpi/battery.asl
+++ b/src/ec/quanta/it8518/acpi/battery.asl
@@ -265,7 +265,7 @@ Device (BATX)
{
If (And (Local0, 1))
{
- Subtract (0x10000, Local1, Local1)
+ Local1 = 0x10000 - Local1
}
Else
{