ec/quanta/it8518/acpi: Replace LNot() with ASL 2.0 syntax

Replace `LNot (a)` with `!a`.

Change-Id: I98ac7a9c1cd16609cf6bd38e1bd9bf8cf54817fb
Signed-off-by: Felix Singer <felixsinger@posteo.net>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/60595
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-31 14:34:36 +01:00
parent 9dafc29cae
commit ecc63d9bf4
1 changed files with 2 additions and 2 deletions

View File

@ -275,7 +275,7 @@ Device (BATX)
}
Else
{
If (LNot (AND (Local0, 2)))
If (!(AND (Local0, 2)))
{
// Battery is not charging
Store (Zero, Local1)
@ -306,7 +306,7 @@ Device (BATX)
Store (ECRC, Local1)
}
If (BFWK && ACPW && LNot (Local0))
If (BFWK && ACPW && !Local0)
{
// On AC power and battery is neither charging
// nor discharging. Linux expects a full battery