summaryrefslogtreecommitdiff
path: root/src/ec
diff options
context:
space:
mode:
authorFelix Singer <felixsinger@posteo.net>2021-12-30 01:22:36 +0100
committerFelix Singer <felixsinger@posteo.net>2021-12-31 00:24:38 +0000
commit3a46206c08be1b51e764b7dc7ca6cf1490053197 (patch)
tree51782318c4b8f30cbd93e09336dbfc8960cdcf04 /src/ec
parent44b014950b2aa3cb5fac72398dbfb5ad98b1aa2a (diff)
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 <felixsinger@posteo.net> Reviewed-on: https://review.coreboot.org/c/coreboot/+/60484 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/google/chromeec/acpi/ec.asl2
1 files changed, 1 insertions, 1 deletions
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)