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>
This commit is contained in:
Felix Singer 2022-01-02 02:48:53 +01:00
parent 9fa818d763
commit 8ab0975683
2 changed files with 4 additions and 4 deletions

View File

@ -19,7 +19,7 @@ Method (BTSW, 1)
} }
Store (Arg0, \_SB.PCI0.LPCB.EC0.BTID) Store (Arg0, \_SB.PCI0.LPCB.EC0.BTID)
Store (5, Local0) // Timeout 5 msec Store (5, Local0) // Timeout 5 msec
While (LNotEqual (BTIX, Arg0)) While (BTIX != Arg0)
{ {
Sleep (1) Sleep (1)
Local0-- Local0--
@ -29,7 +29,7 @@ Method (BTSW, 1)
} }
} }
#else #else
If (LNotEqual (0, Arg0)) { If (Arg0 != 0) {
Return (One) Return (One)
} }
#endif #endif
@ -180,7 +180,7 @@ Method (BBST, 4, Serialized)
Store (Local1, Arg1[0]) Store (Local1, Arg1[0])
// Notify if battery state has changed since last time // Notify if battery state has changed since last time
If (LNotEqual (Local1, DeRefOf (Arg2))) { If (Local1 != DeRefOf (Arg2)) {
Store (Local1, Arg2) Store (Local1, Arg2)
If (Arg0 == 0) { If (Arg0 == 0) {
Notify (BAT0, 0x80) Notify (BAT0, 0x80)

View File

@ -494,7 +494,7 @@ Device (EC0)
Store (^PATI, Local0) Store (^PATI, Local0)
/* When sensor ID returns 0xFF then no more events */ /* 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 #ifdef HAVE_THERM_EVENT_HANDLER
\_SB.DPTF.TEVT (Local0) \_SB.DPTF.TEVT (Local0)