From 66e263005293f876b4aa53753df49c3bed11a7e7 Mon Sep 17 00:00:00 2001 From: Felix Singer Date: Fri, 31 Dec 2021 14:13:47 +0100 Subject: [PATCH] drivers/intel/gma/acpi: Replace Decrement() with ASL 2.0 syntax Replace `Decrement (a)` with `a--`. Change-Id: I45c3d339652dd457cd4664ed03123eee2d7a5684 Signed-off-by: Felix Singer Reviewed-on: https://review.coreboot.org/c/coreboot/+/60589 Tested-by: build bot (Jenkins) Reviewed-by: HAOUAS Elyes --- src/drivers/intel/gma/acpi/common.asl | 2 +- src/drivers/intel/gma/acpi/configure_brightness_levels.asl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/drivers/intel/gma/acpi/common.asl b/src/drivers/intel/gma/acpi/common.asl index 0cf28fafbf..739b91c859 100644 --- a/src/drivers/intel/gma/acpi/common.asl +++ b/src/drivers/intel/gma/acpi/common.asl @@ -40,7 +40,7 @@ Store (BRID (XBQC ()), Local0) If (LNotEqual (Local0, 2)) { - Decrement (Local0) + Local0-- } XBCM (DerefOf (BRIG[Local0])) } diff --git a/src/drivers/intel/gma/acpi/configure_brightness_levels.asl b/src/drivers/intel/gma/acpi/configure_brightness_levels.asl index 99d2bc5ff9..11d8fcd88a 100644 --- a/src/drivers/intel/gma/acpi/configure_brightness_levels.asl +++ b/src/drivers/intel/gma/acpi/configure_brightness_levels.asl @@ -83,7 +83,7 @@ Return (Ones) } } - Decrement (Local0) + Local0-- } Return (Ones)