summaryrefslogtreecommitdiff
path: root/src/drivers
diff options
context:
space:
mode:
authorFelix Singer <felixsinger@posteo.net>2021-12-31 14:13:47 +0100
committerFelix Singer <felixsinger@posteo.net>2022-01-01 14:23:00 +0000
commit66e263005293f876b4aa53753df49c3bed11a7e7 (patch)
treecebe7b082dafeef124e476731cd82ba6da243164 /src/drivers
parentc104e4cdd7d2ebf23a9afb9b178e1516a75ce4f8 (diff)
drivers/intel/gma/acpi: Replace Decrement() with ASL 2.0 syntax
Replace `Decrement (a)` with `a--`. Change-Id: I45c3d339652dd457cd4664ed03123eee2d7a5684 Signed-off-by: Felix Singer <felixsinger@posteo.net> Reviewed-on: https://review.coreboot.org/c/coreboot/+/60589 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: HAOUAS Elyes <ehaouas@noos.fr>
Diffstat (limited to 'src/drivers')
-rw-r--r--src/drivers/intel/gma/acpi/common.asl2
-rw-r--r--src/drivers/intel/gma/acpi/configure_brightness_levels.asl2
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)