diff options
author | Felix Singer <felixsinger@posteo.net> | 2021-12-30 02:53:22 +0100 |
---|---|---|
committer | Felix Singer <felixsinger@posteo.net> | 2021-12-31 09:03:35 +0000 |
commit | ea642ab6e1cf49a4a831e67f2e0973719770eb53 (patch) | |
tree | 5a1f4c3a31ad51abc4a1a6792c91e93f7ada6ed2 /src | |
parent | 263beafc6f521705608397316d1d9ca5ff40f8bd (diff) |
drivers/intel/gma/acpi: Replace Add(a,b) with ASL 2.0 syntax
Replace `Add (a, b)` with `a + b`.
Change-Id: I9d9f1d04f39ffd420655d9297b01b8811339ad08
Signed-off-by: Felix Singer <felixsinger@posteo.net>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/60509
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: HAOUAS Elyes <ehaouas@noos.fr>
Diffstat (limited to 'src')
-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 3581f4d30c..c168d630ba 100644 --- a/src/drivers/intel/gma/acpi/configure_brightness_levels.asl +++ b/src/drivers/intel/gma/acpi/configure_brightness_levels.asl @@ -100,7 +100,7 @@ /* Divide round closest */ Method (DRCL, 2) { - Return (Divide (Add (Arg0, Divide (Arg1, 2)), Arg1)) + Return (Divide (Arg0 + Divide (Arg1, 2), Arg1)) } Method (XBCM, 1, NotSerialized) @@ -124,7 +124,7 @@ While (LLess (Local1, SizeOf (BRIG) - 1)) { /* Local[23]: adjacent values in BRIG */ Store (DeRefOf (BRIG[Local1]), Local2) - Store (DeRefOf (BRIG[Add (Local1, 1)]), Local3) + Store (DeRefOf (BRIG[Local1 + 1]), Local3) If (LLess (Local0, Local3)) { If (LOr (LLess (Local0, Local2), LLess (Local0 - Local2, Local3 - Local0))) { |