ec/google/chromeec/acpi: Replace Subtract(a,b) with ASL 2.0 syntax
Replace `Subtract (a, b)` with `a - b`. Change-Id: Ib47fdb28c2047e001902345ad2f1b25fe5d8a152 Signed-off-by: Felix Singer <felixsinger@posteo.net> Reviewed-on: https://review.coreboot.org/c/coreboot/+/60498 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: HAOUAS Elyes <ehaouas@noos.fr>
This commit is contained in:
parent
1eba1968b5
commit
6b3a899bc4
1 changed files with 1 additions and 1 deletions
|
@ -210,7 +210,7 @@ Method (BBST, 4, Serialized)
|
||||||
|
|
||||||
// See if within ~6% of full
|
// See if within ~6% of full
|
||||||
ShiftRight (Local2, 4, Local3)
|
ShiftRight (Local2, 4, Local3)
|
||||||
If (LGreater (Local1, Subtract (Local2, Local3)) && LLess (Local1, Add (Local2, Local3)))
|
If (LGreater (Local1, Local2 - Local3) && LLess (Local1, Add (Local2, Local3)))
|
||||||
{
|
{
|
||||||
Store (Local2, Local1)
|
Store (Local2, Local1)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue