diff options
author | Felix Singer <felixsinger@posteo.net> | 2022-01-02 01:53:54 +0100 |
---|---|---|
committer | Felix Singer <felixsinger@posteo.net> | 2022-06-09 08:57:26 +0000 |
commit | fa9e31beb62547c35cf8521714e2d72909317d3f (patch) | |
tree | f64664b42fa8bf62a7e82eceda0cf141b0e7e4c7 | |
parent | 04e6893fa6b0d0d90ce3ecb55cc1030e3f41cb50 (diff) |
drivers/intel/gma/acpi: Replace LGreater(a,b) with ASL 2.0 syntax
Replace `LGreater(a, b)` with `a > b`.
Change-Id: I56479726f91f33e1d3062a31f1efb82c0814316c
Signed-off-by: Felix Singer <felixsinger@posteo.net>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/60681
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Sean Rhodes <sean@starlabs.systems>
-rw-r--r-- | src/drivers/intel/gma/acpi/configure_brightness_levels.asl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/drivers/intel/gma/acpi/configure_brightness_levels.asl b/src/drivers/intel/gma/acpi/configure_brightness_levels.asl index a24434f27b..c1f11047b8 100644 --- a/src/drivers/intel/gma/acpi/configure_brightness_levels.asl +++ b/src/drivers/intel/gma/acpi/configure_brightness_levels.asl @@ -54,7 +54,7 @@ /* Always keep BCLP up to date, even if driver is not ready. It requires a full 8-bit brightness value. 255 = 100% */ Store (Arg0 * 255 / 100, Local1) - If (LGreater(Local1, 255)) { + If (Local1 > 255) { Store (255, Local1) } /* also set valid bit */ @@ -71,7 +71,7 @@ Store (0x1, ASLE) Store (0x20, Local0) - While (LGreater(Local0, Zero)) + While (Local0 > 0) { Sleep (1) If (And (ASLC, 0x2) == 0) { |