summaryrefslogtreecommitdiff
path: root/src/ec/quanta/it8518/acpi
diff options
context:
space:
mode:
authorFelix Singer <felixsinger@posteo.net>2022-01-01 23:41:10 +0100
committerFelix Singer <felixsinger@posteo.net>2022-06-09 09:14:13 +0000
commitf1f861ebf5e63ba390fe875d4a3c1743d453b55e (patch)
treeeb2c7a6328bd0dcdd9cd81b8ee51d2c2508a76a4 /src/ec/quanta/it8518/acpi
parentd5d4b4459f88d48556ddfb6a4d17f845ea969995 (diff)
ec/quanta/it8518/acpi: Replace Multiply(a,b,c) with ASL 2.0 syntax
Replace `Multiply (a, b, c)` with `c = a * b`. Change-Id: Ied407753ee3bb024c8c0350c45312c337ac799e5 Signed-off-by: Felix Singer <felixsinger@posteo.net> Reviewed-on: https://review.coreboot.org/c/coreboot/+/60649 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Sean Rhodes <sean@starlabs.systems>
Diffstat (limited to 'src/ec/quanta/it8518/acpi')
-rw-r--r--src/ec/quanta/it8518/acpi/battery.asl8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ec/quanta/it8518/acpi/battery.asl b/src/ec/quanta/it8518/acpi/battery.asl
index 4fcc30c82d..316a3421e7 100644
--- a/src/ec/quanta/it8518/acpi/battery.asl
+++ b/src/ec/quanta/it8518/acpi/battery.asl
@@ -119,7 +119,7 @@ Device (BATX)
//
If (Local7)
{
- Multiply (SBFC, 10, PBIF[2])
+ PBIF[2] = SBFC * 10
}
Else
{
@@ -137,7 +137,7 @@ Device (BATX)
//
If (Local7)
{
- Multiply (SBDC, 10, Local0)
+ Local0 = SBDC * 10
}
Else
{
@@ -286,7 +286,7 @@ Device (BATX)
If (Local6)
{
- Multiply (ECVO, Local1, Local1)
+ Local1 *= ECVO
Divide (Local1, 1000, , Local1)
}
Store (Local1, PBST[1])
@@ -299,7 +299,7 @@ Device (BATX)
// ACPI spec : 0 - mWh : 1 - mAh
If (Local6)
{
- Multiply (ECRC, 10, Local1)
+ Local1 = ECRC * 10
}
Else
{