diff options
author | Felix Singer <felixsinger@posteo.net> | 2021-12-31 14:32:03 +0100 |
---|---|---|
committer | Felix Singer <felixsinger@posteo.net> | 2022-01-01 14:25:02 +0000 |
commit | 98be4d6ea5a9678e3e3f5180ce46ea77f9db454f (patch) | |
tree | b0a46893de1dc5f7230b964de1d2a6a3cc3ef566 /src/ec | |
parent | d4a91aaf1f2ea2ab4d9e7c6a56057f4bd1697703 (diff) |
ec/google/chromeec/acpi: Replace LNot() with ASL 2.0 syntax
Replace `LNot (a)` with `!a`.
Change-Id: I2bf5a09df831b66197c2a9af780c873290e12b42
Signed-off-by: Felix Singer <felixsinger@posteo.net>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/60593
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: HAOUAS Elyes <ehaouas@noos.fr>
Diffstat (limited to 'src/ec')
-rw-r--r-- | src/ec/google/chromeec/acpi/battery.asl | 2 | ||||
-rw-r--r-- | 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) |