From 98be4d6ea5a9678e3e3f5180ce46ea77f9db454f Mon Sep 17 00:00:00 2001 From: Felix Singer Date: Fri, 31 Dec 2021 14:32:03 +0100 Subject: [PATCH] ec/google/chromeec/acpi: Replace LNot() with ASL 2.0 syntax Replace `LNot (a)` with `!a`. Change-Id: I2bf5a09df831b66197c2a9af780c873290e12b42 Signed-off-by: Felix Singer Reviewed-on: https://review.coreboot.org/c/coreboot/+/60593 Tested-by: build bot (Jenkins) Reviewed-by: HAOUAS Elyes --- src/ec/google/chromeec/acpi/battery.asl | 2 +- src/ec/google/chromeec/acpi/ec.asl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ec/google/chromeec/acpi/battery.asl b/src/ec/google/chromeec/acpi/battery.asl index 8cbe7105f6..ce4462debf 100644 --- a/src/ec/google/chromeec/acpi/battery.asl +++ b/src/ec/google/chromeec/acpi/battery.asl @@ -201,7 +201,7 @@ Method (BBST, 4, Serialized) // 2: BATTERY REMAINING CAPACITY // Store (BTRA, Local1) - If (Arg3 && ACEX && LNot (BFDC && BFCG)) { + If (Arg3 && ACEX && !(BFDC && BFCG)) { // On AC power and battery is neither charging // nor discharging. Linux expects a full battery // to report same capacity as last full charge. diff --git a/src/ec/google/chromeec/acpi/ec.asl b/src/ec/google/chromeec/acpi/ec.asl index 10d930d37d..69d608b65c 100644 --- a/src/ec/google/chromeec/acpi/ec.asl +++ b/src/ec/google/chromeec/acpi/ec.asl @@ -489,7 +489,7 @@ Device (EC0) */ Method (_Q09, 0, NotSerialized) { - If (LNot(Acquire (^PATM, 1000))) { + If (!Acquire (^PATM, 1000)) { /* Read sensor ID for event */ Store (^PATI, Local0)