drivers/intel/gma/acpi: Replace LLess(a,b) with ASL 2.0 syntax

Replace `LLess(a, b)` with `a < b`.

Change-Id: I043ffad90737f4217d01c49e03af81549a0ffb1b
Signed-off-by: Felix Singer <felixsinger@posteo.net>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/60677
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 01:46:20 +01:00
parent 6041543a7a
commit 04e6893fa6
1 changed files with 3 additions and 3 deletions

View File

@ -121,13 +121,13 @@
/* Local1: loop index (selectable values start at 2 in BRIG) */ /* Local1: loop index (selectable values start at 2 in BRIG) */
Store (2, Local1) Store (2, Local1)
While (LLess (Local1, SizeOf (BRIG) - 1)) { While (Local1 < SizeOf (BRIG) - 1) {
/* Local[23]: adjacent values in BRIG */ /* Local[23]: adjacent values in BRIG */
Store (DeRefOf (BRIG[Local1]), Local2) Store (DeRefOf (BRIG[Local1]), Local2)
Store (DeRefOf (BRIG[Local1 + 1]), Local3) Store (DeRefOf (BRIG[Local1 + 1]), Local3)
If (LLess (Local0, Local3)) { If (Local0 < Local3) {
If (LLess (Local0, Local2) || LLess (Local0 - Local2, Local3 - Local0)) { If (Local0 < Local2 || Local0 - Local2 < Local3 - Local0) {
Return (Local2) Return (Local2)
} Else { } Else {
Return (Local3) Return (Local3)