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

Change-Id: I5c77b6d1e1dc1134f62dcb3e93df01dc9c2f386c
Signed-off-by: Felix Singer <felixsinger@posteo.net>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/71520
Reviewed-by: Elyes Haouas <ehaouas@noos.fr>
Reviewed-by: Eric Lai <eric_lai@quanta.corp-partner.google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
Felix Singer
2022-12-26 08:17:06 +01:00
parent b4767ce169
commit ca4b587f95
37 changed files with 154 additions and 154 deletions

View File

@@ -7,7 +7,7 @@ Mutex (BATM, 0)
// Wait for desired battery index to be presented in shared memory
// Arg0 = battery index
// Returns Zero on success, One on error.
// Returns Zero on success, 1 on error.
Method (BTSW, 1)
{
#ifdef EC_ENABLE_SECOND_BATTERY_DEVICE
@@ -15,7 +15,7 @@ Method (BTSW, 1)
Return (Zero)
}
If (Arg0 >= BTCN) {
Return (One)
Return (1)
}
\_SB.PCI0.LPCB.EC0.BTID = Arg0
Local0 = 5 // Timeout 5 msec
@@ -25,12 +25,12 @@ Method (BTSW, 1)
Local0--
If (Local0 == 0)
{
Return (One)
Return (1)
}
}
#else
If (Arg0 != 0) {
Return (One)
Return (1)
}
#endif
Return (Zero)
@@ -285,7 +285,7 @@ Device (BAT0)
// Method to enable full battery workaround
Method (BFWE)
{
BFWK = One
BFWK = 1
}
// Method to disable full battery workaround
@@ -375,7 +375,7 @@ Device (BAT1)
// Method to enable full battery workaround
Method (BFWE)
{
BFWK = One
BFWK = 1
}
// Method to disable full battery workaround