From 3a46206c08be1b51e764b7dc7ca6cf1490053197 Mon Sep 17 00:00:00 2001 From: Felix Singer Date: Thu, 30 Dec 2021 01:22:36 +0100 Subject: [PATCH] ec/google/chromeec/acpi: Replace Add(a,b,c) with ASL 2.0 syntax Replace `Add (a, b, c)` with `c = a + b`. Change-Id: Iaa79ea4bdb4a33fd2445ae9033c740dacc090037 Signed-off-by: Felix Singer Reviewed-on: https://review.coreboot.org/c/coreboot/+/60484 Tested-by: build bot (Jenkins) Reviewed-by: HAOUAS Elyes --- src/ec/google/chromeec/acpi/ec.asl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ec/google/chromeec/acpi/ec.asl b/src/ec/google/chromeec/acpi/ec.asl index 5974e2ced6..10d930d37d 100644 --- a/src/ec/google/chromeec/acpi/ec.asl +++ b/src/ec/google/chromeec/acpi/ec.asl @@ -198,7 +198,7 @@ Device (EC0) } /* Adjust by offset to get Kelvin */ - Add (\_SB.PCI0.LPCB.EC0.TOFS, Local0, Local0) + Local0 += \_SB.PCI0.LPCB.EC0.TOFS /* Convert to 1/10 Kelvin */ Multiply (Local0, 10, Local0)