From 42efd7f593c9d270ff330d1282d9c569d1ec709a Mon Sep 17 00:00:00 2001 From: Felix Singer Date: Mon, 26 Dec 2022 09:38:45 +0100 Subject: {superio,ec}/acpi: Replace constant "Zero" with actual number Change-Id: I449ec5b0bbf3f24d51688efef151d3018d2848b2 Signed-off-by: Felix Singer Reviewed-on: https://review.coreboot.org/c/coreboot/+/71524 Reviewed-by: Elyes Haouas Tested-by: build bot (Jenkins) --- src/ec/quanta/it8518/acpi/battery.asl | 14 +++++++------- src/ec/quanta/it8518/acpi/ec.asl | 4 ++-- 2 files changed, 9 insertions(+), 9 deletions(-) (limited to 'src/ec/quanta/it8518') 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) } -- cgit v1.2.3