summaryrefslogtreecommitdiff
path: root/src/drivers/intel/gma/acpi
diff options
context:
space:
mode:
authorFelix Singer <felixsinger@posteo.net>2021-12-31 11:48:31 +0100
committerFelix Singer <felixsinger@posteo.net>2022-01-01 13:59:57 +0000
commit24eb605280b737ee63c72ede451bd5a7d0dce5e2 (patch)
tree332c029180e0ab11299c3db80c2036ff5e2cba5a /src/drivers/intel/gma/acpi
parent150daaf3e227b727d276e0e2056c9ff68b6799a9 (diff)
drivers/intel/gma/acpi: Replace Multiply(a,b) with ASL 2.0 syntax
Replace `Multiply (a, b)` with `a * b`. Change-Id: Idd77fa995e1edab86c509a88a1ba16d636c60b30 Signed-off-by: Felix Singer <felixsinger@posteo.net> Reviewed-on: https://review.coreboot.org/c/coreboot/+/60564 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: HAOUAS Elyes <ehaouas@noos.fr>
Diffstat (limited to 'src/drivers/intel/gma/acpi')
-rw-r--r--src/drivers/intel/gma/acpi/configure_brightness_levels.asl6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/drivers/intel/gma/acpi/configure_brightness_levels.asl b/src/drivers/intel/gma/acpi/configure_brightness_levels.asl
index c168d630ba..564f18203f 100644
--- a/src/drivers/intel/gma/acpi/configure_brightness_levels.asl
+++ b/src/drivers/intel/gma/acpi/configure_brightness_levels.asl
@@ -53,7 +53,7 @@
/* Always keep BCLP up to date, even if driver is not ready.
It requires a full 8-bit brightness value. 255 = 100% */
- Store (Divide (Multiply (Arg0, 255), 100), Local1)
+ Store (Divide (Arg0 * 255, 100), Local1)
If (LGreater(Local1, 255)) {
Store (255, Local1)
}
@@ -105,7 +105,7 @@
Method (XBCM, 1, NotSerialized)
{
- Store (DRCL (Multiply (Arg0, BCLM), 100), BCLV)
+ Store (DRCL (Arg0 * BCLM, 100), BCLV)
}
/* Find value closest to BCLV in BRIG (which must be ordered) */
@@ -117,7 +117,7 @@
Return (Zero)
}
/* Local0: current percentage */
- Store (DRCL (Multiply (BCLV, 100), BCLM), Local0)
+ Store (DRCL (BCLV * 100, BCLM), Local0)
/* Local1: loop index (selectable values start at 2 in BRIG) */
Store (2, Local1)