ec/kontron/it8516e/acpi: Replace Divide(a,b) with ASL 2.0 syntax
Replace `Divide (a, b)` with `a / b`. Change-Id: Ic705dce7303b6bcd1c679a1ae7c81e0809fefa5b Signed-off-by: Felix Singer <felixsinger@posteo.net> Reviewed-on: https://review.coreboot.org/c/coreboot/+/60570 Reviewed-by: HAOUAS Elyes <ehaouas@noos.fr> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
parent
a330382db4
commit
9655cfc9c9
|
@ -91,7 +91,7 @@ Device (PM2) {
|
|||
Release (EC_MUTEX)
|
||||
|
||||
Or (ShiftLeft (Local1, 8), Local0, Local0)
|
||||
Store (Divide (Local0 * 10, 64), Local0) /* Convert to 10th °C */
|
||||
Store (Local0 * 10 / 64, Local0) /* Convert to 10th °C */
|
||||
Return (Local0 + 2732) /* Return as 10th Kelvin */
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue