Attention is currently required from: Patrick Rudolph. Felix Singer has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/60509 )
Change subject: drivers/intel/gma/acpi: Replace Add(a,b) with ASL 2.0 syntax ......................................................................
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 --- M src/drivers/intel/gma/acpi/configure_brightness_levels.asl 1 file changed, 2 insertions(+), 2 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/09/60509/1
diff --git a/src/drivers/intel/gma/acpi/configure_brightness_levels.asl b/src/drivers/intel/gma/acpi/configure_brightness_levels.asl index 3581f4d..c168d63 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))) {