superio/acpi: Replace LEqual(a,b) with ASL 2.0 syntax
Replace `LEqual(a, b)` with `a == b`. Change-Id: Ia09c54465af47f5779917ed71bb3ea148864dfd1 Signed-off-by: Felix Singer <felixsinger@posteo.net> Reviewed-on: https://review.coreboot.org/c/coreboot/+/60657 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Sean Rhodes <sean@starlabs.systems>
This commit is contained in:
parent
8ab0975683
commit
8ef8a3e3c1
|
@ -81,7 +81,7 @@
|
||||||
ENTER_CONFIG_MODE (PM_LDN)\
|
ENTER_CONFIG_MODE (PM_LDN)\
|
||||||
Store (PM_REG, Local0)\
|
Store (PM_REG, Local0)\
|
||||||
EXIT_CONFIG_MODE ()\
|
EXIT_CONFIG_MODE ()\
|
||||||
If (LEqual(Local0, PM_VAL)) { Return (3) }\
|
If (Local0 == PM_VAL) { Return (3) }\
|
||||||
Else { Return (0) }\
|
Else { Return (0) }\
|
||||||
|
|
||||||
/* Disable power saving mode */
|
/* Disable power saving mode */
|
||||||
|
|
|
@ -156,7 +156,7 @@ Device (SUPERIO_ID(PS2, SUPERIO_KBC_PS2LDN)) {
|
||||||
Method (_STA)
|
Method (_STA)
|
||||||
{
|
{
|
||||||
Store (^^SUPERIO_ID(KBD, SUPERIO_KBC_LDN)._STA (), Local0)
|
Store (^^SUPERIO_ID(KBD, SUPERIO_KBC_LDN)._STA (), Local0)
|
||||||
If (LEqual (Local0, DEVICE_PRESENT_ACTIVE)) {
|
If (Local0 == DEVICE_PRESENT_ACTIVE) {
|
||||||
PNP_GENERIC_STA(SUPERIO_KBC_PS2LDN)
|
PNP_GENERIC_STA(SUPERIO_KBC_PS2LDN)
|
||||||
} Else {
|
} Else {
|
||||||
Return (Local0)
|
Return (Local0)
|
||||||
|
|
Loading…
Reference in New Issue