ec/lenovo/h8/acpi: Replace LNot() with ASL 2.0 syntax

Replace `LNot (a)` with `!a`.

Change-Id: I8de151e7df39a0282d032b8ca96c2d1b01014c3a
Signed-off-by: Felix Singer <felixsinger@posteo.net>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/60594
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: HAOUAS Elyes <ehaouas@noos.fr>
This commit is contained in:
Felix Singer 2021-12-31 14:33:54 +01:00
parent 98be4d6ea5
commit 9dafc29cae
1 changed files with 2 additions and 2 deletions

View File

@ -73,7 +73,7 @@ External (\PPKG, MethodObj)
Method(_TMP) { Method(_TMP) {
#if defined(EC_LENOVO_H8_ME_WORKAROUND) #if defined(EC_LENOVO_H8_ME_WORKAROUND)
/* Avoid tripping alarm if ME isn't booted at all yet */ /* Avoid tripping alarm if ME isn't booted at all yet */
If (LNot (MEB1) && LEqual (\_SB.PCI0.LPCB.EC.TMP0, 128)) { If (!MEB1 && LEqual (\_SB.PCI0.LPCB.EC.TMP0, 128)) {
Return (C2K(40)) Return (C2K(40))
} }
Store (1, MEB1) Store (1, MEB1)
@ -160,7 +160,7 @@ External (\PPKG, MethodObj)
Method(_TMP) { Method(_TMP) {
#if defined(EC_LENOVO_H8_ME_WORKAROUND) #if defined(EC_LENOVO_H8_ME_WORKAROUND)
/* Avoid tripping alarm if ME isn't booted at all yet */ /* Avoid tripping alarm if ME isn't booted at all yet */
If (LNot (MEB2) && LEqual (\_SB.PCI0.LPCB.EC.TMP1, 128)) { If (!MEB2 && LEqual (\_SB.PCI0.LPCB.EC.TMP1, 128)) {
Return (C2K(40)) Return (C2K(40))
} }
Store (1, MEB2) Store (1, MEB2)