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>
diff --git a/src/ec/google/chromeec/acpi/battery.asl b/src/ec/google/chromeec/acpi/battery.asl
index 4cc5ac4..702fbb1 100644
--- a/src/ec/google/chromeec/acpi/battery.asl
+++ b/src/ec/google/chromeec/acpi/battery.asl
@@ -19,7 +19,7 @@
}
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 @@
}
}
#else
- If (LNotEqual (0, Arg0)) {
+ If (Arg0 != 0) {
Return (One)
}
#endif
@@ -180,7 +180,7 @@
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 35e0e00..e28fa1a 100644
--- a/src/ec/google/chromeec/acpi/ec.asl
+++ b/src/ec/google/chromeec/acpi/ec.asl
@@ -494,7 +494,7 @@
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)