From 406453c973f5bf48c6ceb62fc388564ac60b6aa8 Mon Sep 17 00:00:00 2001 From: Felix Singer Date: Fri, 31 Dec 2021 13:16:23 +0100 Subject: drivers/intel/gma/acpi: Replace LOr() with ASL 2.0 syntax Replace `LOr (a, b)` with `a || b`. Change-Id: I26f785c2f959539141e70053ae38aac16d3b9185 Signed-off-by: Felix Singer Reviewed-on: https://review.coreboot.org/c/coreboot/+/60576 Tested-by: build bot (Jenkins) Reviewed-by: HAOUAS Elyes --- src/drivers/intel/gma/acpi/configure_brightness_levels.asl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/drivers/intel/gma/acpi') diff --git a/src/drivers/intel/gma/acpi/configure_brightness_levels.asl b/src/drivers/intel/gma/acpi/configure_brightness_levels.asl index e273b22bc7..f0e6c31349 100644 --- a/src/drivers/intel/gma/acpi/configure_brightness_levels.asl +++ b/src/drivers/intel/gma/acpi/configure_brightness_levels.asl @@ -127,7 +127,7 @@ Store (DeRefOf (BRIG[Local1 + 1]), Local3) If (LLess (Local0, Local3)) { - If (LOr (LLess (Local0, Local2), LLess (Local0 - Local2, Local3 - Local0))) { + If (LLess (Local0, Local2) || LLess (Local0 - Local2, Local3 - Local0)) { Return (Local2) } Else { Return (Local3) -- cgit v1.2.3