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/quanta/it8518/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/quanta/it8518/acpi')
-rw-r--r-- | src/ec/quanta/it8518/acpi/battery.asl | 14 | ||||
-rw-r--r-- | src/ec/quanta/it8518/acpi/ec.asl | 4 |
2 files changed, 9 insertions, 9 deletions
diff --git a/src/ec/quanta/it8518/acpi/battery.asl b/src/ec/quanta/it8518/acpi/battery.asl index 4f3834a599..cfc88ed9cc 100644 --- a/src/ec/quanta/it8518/acpi/battery.asl +++ b/src/ec/quanta/it8518/acpi/battery.asl @@ -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 } } diff --git a/src/ec/quanta/it8518/acpi/ec.asl b/src/ec/quanta/it8518/acpi/ec.asl index b510b8ab1a..6433523620 100644 --- a/src/ec/quanta/it8518/acpi/ec.asl +++ b/src/ec/quanta/it8518/acpi/ec.asl @@ -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) } |