From f1f861ebf5e63ba390fe875d4a3c1743d453b55e Mon Sep 17 00:00:00 2001 From: Felix Singer Date: Sat, 1 Jan 2022 23:41:10 +0100 Subject: 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 Reviewed-on: https://review.coreboot.org/c/coreboot/+/60649 Tested-by: build bot (Jenkins) Reviewed-by: Sean Rhodes --- src/ec/quanta/it8518/acpi/battery.asl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/ec/quanta/it8518') 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 { -- cgit v1.2.3