summaryrefslogtreecommitdiffstats
path: root/src/ec/lenovo
diff options
context:
space:
mode:
authorFelix Singer <felixsinger@posteo.net>2022-01-02 00:48:19 +0100
committerFelix Singer <felixsinger@posteo.net>2022-06-09 09:01:56 +0000
commit95bfa033c721a2ec9a4bd158b3cc545802e19464 (patch)
tree0812e558de93452e526a64f216184a46b3d1282c /src/ec/lenovo
parentb1557e870aadb366f22ea5b2529126e6cc4f50d8 (diff)
downloadcoreboot-95bfa033c721a2ec9a4bd158b3cc545802e19464.tar.gz
coreboot-95bfa033c721a2ec9a4bd158b3cc545802e19464.tar.bz2
coreboot-95bfa033c721a2ec9a4bd158b3cc545802e19464.zip
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 <felixsinger@posteo.net> Reviewed-on: https://review.coreboot.org/c/coreboot/+/60661 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Sean Rhodes <sean@starlabs.systems>
Diffstat (limited to 'src/ec/lenovo')
-rw-r--r--src/ec/lenovo/h8/acpi/ec.asl4
-rw-r--r--src/ec/lenovo/h8/acpi/systemstatus.asl8
-rw-r--r--src/ec/lenovo/h8/acpi/thermal.asl4
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 18463a5e4b16..31ddc552b075 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 a5793be22935..759815428234 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 85cfdb518682..78890ebef6b1 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)