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:
parent
91596bcead
commit
527e4a499d
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue