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:
Felix Singer 2021-12-30 02:50:41 +01:00
parent d8cf9626e8
commit f59d76175a

View file

@ -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