From 95bfa033c721a2ec9a4bd158b3cc545802e19464 Mon Sep 17 00:00:00 2001 From: Felix Singer Date: Sun, 2 Jan 2022 00:48:19 +0100 Subject: [PATCH] ec/lenovo/h8/acpi: Replace LEqual(a,b) with ASL 2.0 syntax Replace `LEqual(a, b)` with `a == b`. Change-Id: I49a7ed2d57124746815478f3ead8a8f7c54d048a Signed-off-by: Felix Singer Reviewed-on: https://review.coreboot.org/c/coreboot/+/60661 Tested-by: build bot (Jenkins) Reviewed-by: Sean Rhodes --- src/ec/lenovo/h8/acpi/ec.asl | 4 ++-- src/ec/lenovo/h8/acpi/systemstatus.asl | 8 ++++---- src/ec/lenovo/h8/acpi/thermal.asl | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/ec/lenovo/h8/acpi/ec.asl b/src/ec/lenovo/h8/acpi/ec.asl index 18463a5e4b..31ddc552b0 100644 --- a/src/ec/lenovo/h8/acpi/ec.asl +++ b/src/ec/lenovo/h8/acpi/ec.asl @@ -64,9 +64,9 @@ Device(EC) Method (_REG, 2, NotSerialized) { /* Wait for ERAM driver loaded */ - if (LEqual(Arg1, One)) { + if (Arg1 == 1) { /* Fill HKEY defaults on first boot */ - if (LEqual(^HKEY.INIT, Zero)) { + if (^HKEY.INIT == 0) { Store (BTEB, ^HKEY.WBDC) Store (WWEB, ^HKEY.WWAN) Store (One, ^HKEY.INIT) diff --git a/src/ec/lenovo/h8/acpi/systemstatus.asl b/src/ec/lenovo/h8/acpi/systemstatus.asl index a5793be229..7598154282 100644 --- a/src/ec/lenovo/h8/acpi/systemstatus.asl +++ b/src/ec/lenovo/h8/acpi/systemstatus.asl @@ -5,7 +5,7 @@ Scope (\_SI) { Method(_SST, 1, NotSerialized) { - If (LEqual (Arg0, 0)) { + If (Arg0 == 0) { /* Indicator off */ /* power TLED off */ @@ -14,7 +14,7 @@ Scope (\_SI) \_SB.PCI0.LPCB.EC.TLED(0x07) } - If (LEqual (Arg0, 1)) { + If (Arg0 == 1) { /* working state */ /* power TLED on */ @@ -23,7 +23,7 @@ Scope (\_SI) \_SB.PCI0.LPCB.EC.TLED(0x07) } - If (LEqual (Arg0, 2)) { + If (Arg0 == 2) { /* waking state */ /* power LED on */ @@ -32,7 +32,7 @@ Scope (\_SI) \_SB.PCI0.LPCB.EC.TLED(0xc7) } - If (LEqual (Arg0, 3)) { + If (Arg0 == 3) { /* sleep state */ /* power TLED pulsing */ diff --git a/src/ec/lenovo/h8/acpi/thermal.asl b/src/ec/lenovo/h8/acpi/thermal.asl index 85cfdb5186..78890ebef6 100644 --- a/src/ec/lenovo/h8/acpi/thermal.asl +++ b/src/ec/lenovo/h8/acpi/thermal.asl @@ -73,7 +73,7 @@ External (\PPKG, MethodObj) Method(_TMP) { #if defined(EC_LENOVO_H8_ME_WORKAROUND) /* Avoid tripping alarm if ME isn't booted at all yet */ - If (!MEB1 && LEqual (\_SB.PCI0.LPCB.EC.TMP0, 128)) { + If (!MEB1 && \_SB.PCI0.LPCB.EC.TMP0 == 128) { Return (C2K(40)) } Store (1, MEB1) @@ -160,7 +160,7 @@ External (\PPKG, MethodObj) Method(_TMP) { #if defined(EC_LENOVO_H8_ME_WORKAROUND) /* Avoid tripping alarm if ME isn't booted at all yet */ - If (!MEB2 && LEqual (\_SB.PCI0.LPCB.EC.TMP1, 128)) { + If (!MEB2 && \_SB.PCI0.LPCB.EC.TMP1 == 128) { Return (C2K(40)) } Store (1, MEB2)