summaryrefslogtreecommitdiff
path: root/src/drivers/intel
diff options
context:
space:
mode:
Diffstat (limited to 'src/drivers/intel')
-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 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))) {