From 9df60d36b2637c500030e7c9cef620002f7f47bf Mon Sep 17 00:00:00 2001 From: Felix Singer Date: Mon, 26 Dec 2022 09:43:07 +0100 Subject: tree/acpi: Replace constant "Zero" with actual number Change-Id: I5a3e3506415f424bf0fdd48fc449520a76622af5 Signed-off-by: Felix Singer Reviewed-on: https://review.coreboot.org/c/coreboot/+/71525 Reviewed-by: Subrata Banik Reviewed-by: Elyes Haouas Tested-by: build bot (Jenkins) --- src/drivers/intel/gma/acpi/common.asl | 2 +- src/drivers/intel/gma/acpi/configure_brightness_levels.asl | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src/drivers/intel') diff --git a/src/drivers/intel/gma/acpi/common.asl b/src/drivers/intel/gma/acpi/common.asl index 59eae70bfa..e89d6d65e2 100644 --- a/src/drivers/intel/gma/acpi/common.asl +++ b/src/drivers/intel/gma/acpi/common.asl @@ -6,7 +6,7 @@ Method(BRID, 1, NotSerialized) { - Local0 = Match (BRIG, MEQ, Arg0, MTR, Zero, 2) + Local0 = Match (BRIG, MEQ, Arg0, MTR, 0, 2) If (Local0 == Ones) { Return (SizeOf(BRIG) - 1) diff --git a/src/drivers/intel/gma/acpi/configure_brightness_levels.asl b/src/drivers/intel/gma/acpi/configure_brightness_levels.asl index 689ebc485e..d6e417cac8 100644 --- a/src/drivers/intel/gma/acpi/configure_brightness_levels.asl +++ b/src/drivers/intel/gma/acpi/configure_brightness_levels.asl @@ -34,7 +34,7 @@ * Request back-light brightness change through mailbox 3 * * @param Arg0 The brightness level to set in percent - * @Return Zero on success, Ones on failure + * @Return 0 on success, Ones on failure * Errors: * ASLS is zero * * Mailbox 3 support not advertised * * Driver not loaded or not ready @@ -78,7 +78,7 @@ /* Request has been processed, check status: */ Local1 = (ASLC >> 12) & 3 If (Local1 == 0) { - Return (Zero) + Return (0) } Else { Return (Ones) } @@ -114,7 +114,7 @@ /* Prevent DivideByZero if backlight control isn't enabled */ If (BCLM == 0) { - Return (Zero) + Return (0) } /* Local0: current percentage */ Local0 = DRCL (BCLV * 100, BCLM) -- cgit v1.2.1