From ecc63d9bf410a60de7c353d57d3e4d8954963595 Mon Sep 17 00:00:00 2001 From: Felix Singer Date: Fri, 31 Dec 2021 14:34:36 +0100 Subject: ec/quanta/it8518/acpi: Replace LNot() with ASL 2.0 syntax Replace `LNot (a)` with `!a`. Change-Id: I98ac7a9c1cd16609cf6bd38e1bd9bf8cf54817fb Signed-off-by: Felix Singer Reviewed-on: https://review.coreboot.org/c/coreboot/+/60595 Tested-by: build bot (Jenkins) Reviewed-by: HAOUAS Elyes --- src/ec/quanta/it8518/acpi/battery.asl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/ec/quanta') diff --git a/src/ec/quanta/it8518/acpi/battery.asl b/src/ec/quanta/it8518/acpi/battery.asl index 5b51c892fc..4fcc30c82d 100644 --- a/src/ec/quanta/it8518/acpi/battery.asl +++ b/src/ec/quanta/it8518/acpi/battery.asl @@ -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 -- cgit v1.2.3