ec/kontron/it8516e/acpi: Replace Add(a,b) with ASL 2.0 syntax
Replace `Add (a, b)` with `a + b`. Change-Id: Ie1c21437a0d97ff1039775adcb915547fac71bf5 Signed-off-by: Felix Singer <felixsinger@posteo.net> Reviewed-on: https://review.coreboot.org/c/coreboot/+/60507 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: HAOUAS Elyes <ehaouas@noos.fr>
This commit is contained in:
parent
d8cf9626e8
commit
f59d76175a
1 changed files with 2 additions and 2 deletions
|
@ -36,7 +36,7 @@ Device (PM1) {
|
|||
Return (0)
|
||||
}
|
||||
Multiply (Local0, 10, Local0) /* Convert to 10th °C */
|
||||
Return (Add (Local0, 2732)) /* Return as 10th Kelvin */
|
||||
Return (Local0 + 2732) /* Return as 10th Kelvin */
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
@ -92,7 +92,7 @@ Device (PM2) {
|
|||
|
||||
Or (ShiftLeft (Local1, 8), Local0, Local0)
|
||||
Store (Divide (Multiply (Local0, 10), 64), Local0) /* Convert to 10th °C */
|
||||
Return (Add (Local0, 2732)) /* Return as 10th Kelvin */
|
||||
Return (Local0 + 2732) /* Return as 10th Kelvin */
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue