diff options
author | Felix Singer <felixsinger@posteo.net> | 2022-01-02 02:48:53 +0100 |
---|---|---|
committer | Felix Singer <felixsinger@posteo.net> | 2022-06-09 09:03:15 +0000 |
commit | 8ab0975683c1416479bd5ddd85303cc79d8db770 (patch) | |
tree | 2b3d9d225b5b1d85517a5aeaa33a1466fd1ed987 /src/ec | |
parent | 9fa818d763f37a55d1ce59dbacf56fb6dca829c3 (diff) |
ec/google/chromeec/acpi: Replace LNotEqual(a,b) with ASL 2.0 syntax
Replace `LNotEqual(a, b)` with `a != b`.
Change-Id: I2e0c5961fcc90c97666f49837a71f6c0bdc429b3
Signed-off-by: Felix Singer <felixsinger@posteo.net>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/60699
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Sean Rhodes <sean@starlabs.systems>
Diffstat (limited to 'src/ec')
-rw-r--r-- | src/ec/google/chromeec/acpi/battery.asl | 6 | ||||
-rw-r--r-- | src/ec/google/chromeec/acpi/ec.asl | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/ec/google/chromeec/acpi/battery.asl b/src/ec/google/chromeec/acpi/battery.asl index 4cc5ac45c2..702fbb1112 100644 --- a/src/ec/google/chromeec/acpi/battery.asl +++ b/src/ec/google/chromeec/acpi/battery.asl @@ -19,7 +19,7 @@ Method (BTSW, 1) } Store (Arg0, \_SB.PCI0.LPCB.EC0.BTID) Store (5, Local0) // Timeout 5 msec - While (LNotEqual (BTIX, Arg0)) + While (BTIX != Arg0) { Sleep (1) Local0-- @@ -29,7 +29,7 @@ Method (BTSW, 1) } } #else - If (LNotEqual (0, Arg0)) { + If (Arg0 != 0) { Return (One) } #endif @@ -180,7 +180,7 @@ Method (BBST, 4, Serialized) Store (Local1, Arg1[0]) // Notify if battery state has changed since last time - If (LNotEqual (Local1, DeRefOf (Arg2))) { + If (Local1 != DeRefOf (Arg2)) { Store (Local1, Arg2) If (Arg0 == 0) { Notify (BAT0, 0x80) diff --git a/src/ec/google/chromeec/acpi/ec.asl b/src/ec/google/chromeec/acpi/ec.asl index 35e0e0013f..e28fa1a3ea 100644 --- a/src/ec/google/chromeec/acpi/ec.asl +++ b/src/ec/google/chromeec/acpi/ec.asl @@ -494,7 +494,7 @@ Device (EC0) Store (^PATI, Local0) /* When sensor ID returns 0xFF then no more events */ - While (LNotEqual (Local0, EC_TEMP_SENSOR_NOT_PRESENT)) + While (Local0 != EC_TEMP_SENSOR_NOT_PRESENT) { #ifdef HAVE_THERM_EVENT_HANDLER \_SB.DPTF.TEVT (Local0) |