ec/quanta/it8518/acpi: Replace Add(a,b) with ASL 2.0 syntax
Replace `Add (a, b)` with `a + b`. Change-Id: I5ed8c8a8cfc92b0af1602bee15cd6971536b61ad Signed-off-by: Felix Singer <felixsinger@posteo.net> Reviewed-on: https://review.coreboot.org/c/coreboot/+/60506 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: HAOUAS Elyes <ehaouas@noos.fr>
This commit is contained in:
parent
5f013f7eb2
commit
d8cf9626e8
1 changed files with 1 additions and 1 deletions
|
@ -317,7 +317,7 @@ Device (BATX)
|
||||||
|
|
||||||
// See if within ~3% of full
|
// See if within ~3% of full
|
||||||
ShiftRight (Local2, 5, Local3)
|
ShiftRight (Local2, 5, Local3)
|
||||||
If (LGreater (Local1, Local2 - Local3) && LLess (Local1, Add (Local2, Local3)))
|
If (LGreater (Local1, Local2 - Local3) && LLess (Local1, Local2 + Local3))
|
||||||
{
|
{
|
||||||
Store (Local2, Local1)
|
Store (Local2, Local1)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue