diff options
author | Felix Singer <felixsinger@posteo.net> | 2022-12-26 09:38:45 +0100 |
---|---|---|
committer | Felix Singer <felixsinger@posteo.net> | 2022-12-27 09:06:29 +0000 |
commit | 42efd7f593c9d270ff330d1282d9c569d1ec709a (patch) | |
tree | bccc1e9c9bb2f9aec6c76c55611f0aafdb4f6e9b /src/ec/google/chromeec/acpi | |
parent | fa06bcba06c5842faae797629e9f72ec28d511c0 (diff) |
{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>
Diffstat (limited to 'src/ec/google/chromeec/acpi')
-rw-r--r-- | src/ec/google/chromeec/acpi/battery.asl | 22 | ||||
-rw-r--r-- | src/ec/google/chromeec/acpi/ec.asl | 8 |
2 files changed, 15 insertions, 15 deletions
diff --git a/src/ec/google/chromeec/acpi/battery.asl b/src/ec/google/chromeec/acpi/battery.asl index a0b05f370a..5344111167 100644 --- a/src/ec/google/chromeec/acpi/battery.asl +++ b/src/ec/google/chromeec/acpi/battery.asl @@ -7,12 +7,12 @@ Mutex (BATM, 0) // Wait for desired battery index to be presented in shared memory // Arg0 = battery index -// Returns Zero on success, 1 on error. +// Returns 0 on success, 1 on error. Method (BTSW, 1) { #ifdef EC_ENABLE_SECOND_BATTERY_DEVICE If (BTIX == Arg0) { - Return (Zero) + Return (0) } If (Arg0 >= BTCN) { Return (1) @@ -33,7 +33,7 @@ Method (BTSW, 1) Return (1) } #endif - Return (Zero) + Return (0) } // _STA implementation. @@ -41,7 +41,7 @@ Method (BTSW, 1) Method (BSTA, 1, Serialized) { If (Acquire (^BATM, 1000)) { - Return (Zero) + Return (0) } If (~BTSW (Arg0) & BTEX) { @@ -159,7 +159,7 @@ Method (BBST, 4, Serialized) // bit 1 = charging // bit 2 = critical level // - Local1 = Zero + Local1 = 0 // Check if AC is present If (ACEX) { @@ -277,10 +277,10 @@ Device (BAT0) 0xFFFFFFFF, // 0x02: Battery Remaining Capacity 0xFFFFFFFF, // 0x03: Battery Present Voltage }) - Name (BSTP, Zero) + Name (BSTP, 0) // Workaround for full battery status, disabled by default - Name (BFWK, Zero) + Name (BFWK, 0) // Method to enable full battery workaround Method (BFWE) @@ -291,7 +291,7 @@ Device (BAT0) // Method to disable full battery workaround Method (BFWD) { - BFWK = Zero + BFWK = 0 } Method (_STA, 0, Serialized) @@ -367,10 +367,10 @@ Device (BAT1) 0xFFFFFFFF, // 0x02: Battery Remaining Capacity 0xFFFFFFFF, // 0x03: Battery Present Voltage }) - Name (BSTP, Zero) + Name (BSTP, 0) // Workaround for full battery status, disabled by default - Name (BFWK, Zero) + Name (BFWK, 0) // Method to enable full battery workaround Method (BFWE) @@ -381,7 +381,7 @@ Device (BAT1) // Method to disable full battery workaround Method (BFWD) { - BFWK = Zero + BFWK = 0 } Method (_STA, 0, Serialized) diff --git a/src/ec/google/chromeec/acpi/ec.asl b/src/ec/google/chromeec/acpi/ec.asl index af594683c7..2d44ae3c1b 100644 --- a/src/ec/google/chromeec/acpi/ec.asl +++ b/src/ec/google/chromeec/acpi/ec.asl @@ -198,22 +198,22 @@ Device (EC0) /* Check for sensor not calibrated */ If (Local0 == \_SB.PCI0.LPCB.EC0.TNCA) { - Return (Zero) + Return (0) } /* Check for sensor not present */ If (Local0 == \_SB.PCI0.LPCB.EC0.TNPR) { - Return (Zero) + Return (0) } /* Check for sensor not powered */ If (Local0 == \_SB.PCI0.LPCB.EC0.TNOP) { - Return (Zero) + Return (0) } /* Check for sensor bad reading */ If (Local0 == \_SB.PCI0.LPCB.EC0.TBAD) { - Return (Zero) + Return (0) } /* Adjust by offset to get Kelvin */ |