{superio,ec}/acpi: Replace constant "Zero" with actual number

Change-Id: I449ec5b0bbf3f24d51688efef151d3018d2848b2
Signed-off-by: Felix Singer <felixsinger@posteo.net>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/71524
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:38:45 +01:00
parent fa06bcba06
commit 42efd7f593
36 changed files with 179 additions and 179 deletions

View File

@@ -215,7 +215,7 @@ Device (EC0)
Method (_Q11, 0, NotSerialized)
{
Printf ("AC Detach Event 0x11")
\PWRS = Zero
\PWRS = 0
Notify (AC, 0x80)
Notify (BATX, 0x80)
\PNOT ()

View File

@@ -13,7 +13,7 @@ Device (BATX)
// Battery X Information
// Battery X Status
//
Name (BXST, Zero)
Name (BXST, 0)
//
// Default Static Battery Information
@@ -55,7 +55,7 @@ Device (BATX)
// Method to disable full battery workaround
Method (BFWD)
{
BFWK = Zero
BFWK = 0
}
// Method to wait for EC to be ready after changing the Battery Info ID
@@ -111,7 +111,7 @@ Device (BATX)
//
// Information ID 0 -
//
HIID = Zero
HIID = 0
WAEC ()
//
@@ -228,7 +228,7 @@ Device (BATX)
}
Else
{
Local0 = Zero
Local0 = 0
}
}
@@ -238,7 +238,7 @@ Device (BATX)
Local0 |= 4
}
Local1 = Zero
Local1 = 0
// Check if AC is present
If (ACPW)
@@ -270,7 +270,7 @@ Device (BATX)
Else
{
// Error
Local1 = Zero
Local1 = 0
}
}
Else
@@ -278,7 +278,7 @@ Device (BATX)
If (!(Local0 & 2))
{
// Battery is not charging
Local1 = Zero
Local1 = 0
}
}

View File

@@ -602,7 +602,7 @@ Device (EC0)
// AC Power Removed
Method (_Q27, 0, NotSerialized)
{
\PWRS = Zero
\PWRS = 0
Notify (AC, 0x80)
\PNOT ()
}
@@ -617,7 +617,7 @@ Device (EC0)
// LID Close (Suspend Trigger)
Method (_Q2B)
{
\LIDS = Zero
\LIDS = 0
Notify (\_SB.LID0, 0x80)
}