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>
This commit is contained in:
parent
b1557e870a
commit
95bfa033c7
|
@ -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)
|
||||
|
|
|
@ -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 */
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue