tree/acpi: Replace constant "Zero" with actual number

Change-Id: I5a3e3506415f424bf0fdd48fc449520a76622af5
Signed-off-by: Felix Singer <felixsinger@posteo.net>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/71525
Reviewed-by: Subrata Banik <subratabanik@google.com>
Reviewed-by: Elyes Haouas <ehaouas@noos.fr>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
Felix Singer
2022-12-26 09:43:07 +01:00
parent 42efd7f593
commit 9df60d36b2
40 changed files with 106 additions and 106 deletions

View File

@@ -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)

View File

@@ -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)