ec/google/chromeec/acpi: Replace Subtract(a,b,c) with ASL 2.0 syntax
Replace `Subtract (a, b, c)` with `c = a - b`. Change-Id: If35c90d0e7d523f67f94d542e37fdca43bb16d7c Signed-off-by: Felix Singer <felixsinger@posteo.net> Reviewed-on: https://review.coreboot.org/c/coreboot/+/60475 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: HAOUAS Elyes <ehaouas@noos.fr>
This commit is contained in:
parent
931a1cec09
commit
73078edd5e
|
@ -426,7 +426,7 @@ Device (EC0)
|
||||||
Divide (ToInteger (Arg1), 10, , Local1)
|
Divide (ToInteger (Arg1), 10, , Local1)
|
||||||
|
|
||||||
/* Adjust by EC temperature offset */
|
/* Adjust by EC temperature offset */
|
||||||
Subtract (Local1, ^TOFS, ^PATT)
|
^PATT = Local1 - ^TOFS
|
||||||
|
|
||||||
/* Set commit value with SELECT=0 and ENABLE=1 */
|
/* Set commit value with SELECT=0 and ENABLE=1 */
|
||||||
Store (0x02, ^PATC)
|
Store (0x02, ^PATC)
|
||||||
|
@ -453,7 +453,7 @@ Device (EC0)
|
||||||
Divide (ToInteger (Arg1), 10, , Local1)
|
Divide (ToInteger (Arg1), 10, , Local1)
|
||||||
|
|
||||||
/* Adjust by EC temperature offset */
|
/* Adjust by EC temperature offset */
|
||||||
Subtract (Local1, ^TOFS, ^PATT)
|
^PATT = Local1 - ^TOFS
|
||||||
|
|
||||||
/* Set commit value with SELECT=1 and ENABLE=1 */
|
/* Set commit value with SELECT=1 and ENABLE=1 */
|
||||||
Store (0x03, ^PATC)
|
Store (0x03, ^PATC)
|
||||||
|
@ -542,7 +542,7 @@ Device (EC0)
|
||||||
If (LEqual (^DDPN, 0)) {
|
If (LEqual (^DDPN, 0)) {
|
||||||
Return (^TBMD)
|
Return (^TBMD)
|
||||||
} Else {
|
} Else {
|
||||||
Subtract (^DDPN, 1, Local0)
|
Local0 = ^DDPN - 1
|
||||||
Return (Local0)
|
Return (Local0)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue