summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFelix Singer <felixsinger@posteo.net>2022-01-02 01:46:20 +0100
committerFelix Singer <felixsinger@posteo.net>2022-06-09 08:57:20 +0000
commit04e6893fa6b0d0d90ce3ecb55cc1030e3f41cb50 (patch)
tree0b4b3e61408c8525d36a56c2db639791fe1e2669 /src
parent6041543a7a5cdad7a342dd076ad20cca424ee266 (diff)
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>
Diffstat (limited to 'src')
-rw-r--r--src/drivers/intel/gma/acpi/configure_brightness_levels.asl6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/drivers/intel/gma/acpi/configure_brightness_levels.asl b/src/drivers/intel/gma/acpi/configure_brightness_levels.asl
index ec519151ec..a24434f27b 100644
--- a/src/drivers/intel/gma/acpi/configure_brightness_levels.asl
+++ b/src/drivers/intel/gma/acpi/configure_brightness_levels.asl
@@ -121,13 +121,13 @@
/* Local1: loop index (selectable values start at 2 in BRIG) */
Store (2, Local1)
- While (LLess (Local1, SizeOf (BRIG) - 1)) {
+ While (Local1 < SizeOf (BRIG) - 1) {
/* Local[23]: adjacent values in BRIG */
Store (DeRefOf (BRIG[Local1]), Local2)
Store (DeRefOf (BRIG[Local1 + 1]), Local3)
- If (LLess (Local0, Local3)) {
- If (LLess (Local0, Local2) || LLess (Local0 - Local2, Local3 - Local0)) {
+ If (Local0 < Local3) {
+ If (Local0 < Local2 || Local0 - Local2 < Local3 - Local0) {
Return (Local2)
} Else {
Return (Local3)