diff options
author | Felix Singer <felixsinger@posteo.net> | 2022-01-02 01:04:39 +0100 |
---|---|---|
committer | Felix Singer <felixsinger@posteo.net> | 2022-06-09 09:14:38 +0000 |
commit | 1e965548460a662b56eede184d48b4166998e3e6 (patch) | |
tree | 229ac0acfd097c13fc6d528f3a4b302aaf619cf3 /src | |
parent | f1f861ebf5e63ba390fe875d4a3c1743d453b55e (diff) |
ec/quanta/it8518/acpi: Replace LEqual(a,b) with ASL 2.0 syntax
Replace `LEqual(a, b)` with `a == b`.
Change-Id: I6732fd876524feab924a58434bec381dcdb87bce
Signed-off-by: Felix Singer <felixsinger@posteo.net>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/60663
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Sean Rhodes <sean@starlabs.systems>
Diffstat (limited to 'src')
-rw-r--r-- | src/ec/quanta/it8518/acpi/battery.asl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ec/quanta/it8518/acpi/battery.asl b/src/ec/quanta/it8518/acpi/battery.asl index 316a3421e7..6e9ba895fa 100644 --- a/src/ec/quanta/it8518/acpi/battery.asl +++ b/src/ec/quanta/it8518/acpi/battery.asl @@ -63,12 +63,12 @@ Device (BATX) Method (WAEC) { Store (20, Local0) // Timeout 100 msec - While (LEqual (HSID, Zero)) + While (HSID == 0) { // EC Is not ready Sleep (5) Local0-- - If (LEqual (Local0, Zero)) + If (Local0 == 0) { Break } @@ -233,7 +233,7 @@ Device (BATX) } // Set critical flag if battery is empty - If (LEqual (And (HB0S, 0x0F), 0)) + If (And (HB0S, 0x0F) == 0) { Or (Local0, 4, Local0) } |