mb/google/slippy/acpi: Replace Add(a,b,c) with ASL 2.0 syntax

Replace `Add (a, b, c)` with `c = a + b`.

Change-Id: I1f18a327b5500eacfe8895ebabb1f2b294cef0d0
Signed-off-by: Felix Singer <felixsinger@posteo.net>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/60488
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: HAOUAS Elyes <ehaouas@noos.fr>
This commit is contained in:
Felix Singer 2021-12-30 01:34:57 +01:00
parent 91596bcead
commit 527e4a499d
1 changed files with 2 additions and 2 deletions

View File

@ -38,7 +38,7 @@ Scope (\_TZ)
Multiply (Arg0, 10, Local0)
// Convert to Kelvin
Add (Local0, 2732, Local0)
Local0 += 2732
Return (Local0)
}
@ -87,7 +87,7 @@ Scope (\_TZ)
}
// 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)