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/lenovo/h8/acpi/ec.asl | 4 ++-- src/ec/lenovo/h8/acpi/thermal.asl | 4 ++-- src/ec/lenovo/h8/acpi/thinkpad.asl | 10 +++++----- src/ec/lenovo/h8/acpi/thinkpad_bat_thresholds.asl | 4 ++-- 4 files changed, 11 insertions(+), 11 deletions(-) (limited to 'src/ec/lenovo/h8/acpi') diff --git a/src/ec/lenovo/h8/acpi/ec.asl b/src/ec/lenovo/h8/acpi/ec.asl index a1bf8bc5b7..bc54d3b422 100644 --- a/src/ec/lenovo/h8/acpi/ec.asl +++ b/src/ec/lenovo/h8/acpi/ec.asl @@ -319,9 +319,9 @@ Device(EC) { If (Arg0) { FAND = 1 - FANA = Zero + FANA = 0 } Else { - FAND = Zero + FAND = 0 FANA = 1 } } diff --git a/src/ec/lenovo/h8/acpi/thermal.asl b/src/ec/lenovo/h8/acpi/thermal.asl index 6115eb687b..4f3b76e4dd 100644 --- a/src/ec/lenovo/h8/acpi/thermal.asl +++ b/src/ec/lenovo/h8/acpi/thermal.asl @@ -118,8 +118,8 @@ External (\PPKG, MethodObj) } Method (_OFF) { - \_SB.PCI0.LPCB.EC.FANE(Zero) - \FLVL = Zero + \_SB.PCI0.LPCB.EC.FANE(0) + \FLVL = 0 Notify (\_TZ.THM0, NOTIFY_TZ_TRIPPTCHG) } } diff --git a/src/ec/lenovo/h8/acpi/thinkpad.asl b/src/ec/lenovo/h8/acpi/thinkpad.asl index 73eee52deb..1268e22b94 100644 --- a/src/ec/lenovo/h8/acpi/thinkpad.asl +++ b/src/ec/lenovo/h8/acpi/thinkpad.asl @@ -36,17 +36,17 @@ Device (HKEY) { Local0 = BTN If (Local0 != 0) { - BTN = Zero + BTN = 0 Local0 += 0x1000 Return (Local0) } Local0 = BTAB If (Local0 != 0) { - BTAB = Zero + BTAB = 0 Local0 += 0x5000 Return (Local0) } - Return (Zero) + Return (0) } /* Report event */ @@ -75,8 +75,8 @@ Device (HKEY) } Else { - EMSK = Zero - ETAB = Zero + EMSK = 0 + ETAB = 0 } EN = Arg0 } diff --git a/src/ec/lenovo/h8/acpi/thinkpad_bat_thresholds.asl b/src/ec/lenovo/h8/acpi/thinkpad_bat_thresholds.asl index db0333d0bb..b1ff65f100 100644 --- a/src/ec/lenovo/h8/acpi/thinkpad_bat_thresholds.asl +++ b/src/ec/lenovo/h8/acpi/thinkpad_bat_thresholds.asl @@ -17,7 +17,7 @@ * = 2: Secondary battery * = Others: Reserved (0) * Bit 31-10: Reserved (0) - * Must be Zero + * Must be 0 * * Out Parameter: * DWORD @@ -110,7 +110,7 @@ Method (BCCS, 1, NotSerialized) * DWORD * Bit 7-0:BatteryID * Bit 31-8: Reserved (0) - * Must be Zero + * Must be 0 * * Out Parameter: * DWORD -- cgit v1.2.3