summaryrefslogtreecommitdiff
path: root/src/drivers/intel/gma/acpi
diff options
context:
space:
mode:
authorFelix Singer <felixsinger@posteo.net>2021-12-31 12:12:18 +0100
committerFelix Singer <felixsinger@posteo.net>2022-01-01 14:02:22 +0000
commitb232ca67d7e8e7db18deb8448cb3d070488ada4f (patch)
tree451cdb31e36d0844475f685a24b0eabe509d738d /src/drivers/intel/gma/acpi
parent9655cfc9c978a2c40184404d745c6c959800db35 (diff)
drivers/intel/gma/acpi: Replace Divide(a,b) with ASL 2.0 syntax
Replace `Divide (a, b)` with `a / b`. Change-Id: Icfae760441560e1aa51383d04a3898412ba1be04 Signed-off-by: Felix Singer <felixsinger@posteo.net> Reviewed-on: https://review.coreboot.org/c/coreboot/+/60571 Reviewed-by: HAOUAS Elyes <ehaouas@noos.fr> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/drivers/intel/gma/acpi')
-rw-r--r--src/drivers/intel/gma/acpi/configure_brightness_levels.asl4
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 564f18203f..e273b22bc7 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 (Arg0 * 255, 100), Local1)
+ Store (Arg0 * 255 / 100, Local1)
If (LGreater(Local1, 255)) {
Store (255, Local1)
}
@@ -100,7 +100,7 @@
/* Divide round closest */
Method (DRCL, 2)
{
- Return (Divide (Arg0 + Divide (Arg1, 2), Arg1))
+ Return ((Arg0 + Arg1 / 2) / Arg1)
}
Method (XBCM, 1, NotSerialized)