diff options
author | Felix Singer <felixsinger@posteo.net> | 2022-01-02 00:55:18 +0100 |
---|---|---|
committer | Paul Fagerburg <pfagerburg@chromium.org> | 2022-06-03 15:25:56 +0000 |
commit | 3c799fa311ecc6e14189f5132bee081545881d48 (patch) | |
tree | 72bbe95a82142a2ff9c949b6b59734d40ff98272 /src/ec | |
parent | 29821febc3c67f6a94f5e23aaefa83e8cbd77ade (diff) |
ec/google/chromeec/acpi: Replace LEqual(a,b) with ASL 2.0 syntax
Replace `LEqual(a, b)` with `a == b`.
Change-Id: I4d79080ecfe457766983b20a0217ccadcd188fcf
Signed-off-by: Felix Singer <felixsinger@posteo.net>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/60662
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
Diffstat (limited to 'src/ec')
-rw-r--r-- | src/ec/google/chromeec/acpi/battery.asl | 6 | ||||
-rw-r--r-- | src/ec/google/chromeec/acpi/ec.asl | 10 | ||||
-rw-r--r-- | src/ec/google/chromeec/acpi/keyboard_backlight.asl | 4 | ||||
-rw-r--r-- | src/ec/google/chromeec/acpi/tbmc.asl | 2 |
4 files changed, 11 insertions, 11 deletions
diff --git a/src/ec/google/chromeec/acpi/battery.asl b/src/ec/google/chromeec/acpi/battery.asl index 1f9cb976c2..ad7d741ba4 100644 --- a/src/ec/google/chromeec/acpi/battery.asl +++ b/src/ec/google/chromeec/acpi/battery.asl @@ -11,7 +11,7 @@ Mutex (BATM, 0) Method (BTSW, 1) { #ifdef EC_ENABLE_SECOND_BATTERY_DEVICE - If (LEqual (BTIX, Arg0)) { + If (BTIX == Arg0) { Return (Zero) } If (Arg0 >= BTCN) { @@ -23,7 +23,7 @@ Method (BTSW, 1) { Sleep (1) Local0-- - If (LEqual (Local0, Zero)) + If (Local0 == 0) { Return (One) } @@ -182,7 +182,7 @@ Method (BBST, 4, Serialized) // Notify if battery state has changed since last time If (LNotEqual (Local1, DeRefOf (Arg2))) { Store (Local1, Arg2) - If (LEqual(Arg0, 0)) { + If (Arg0 == 0) { Notify (BAT0, 0x80) } #ifdef EC_ENABLE_SECOND_BATTERY_DEVICE diff --git a/src/ec/google/chromeec/acpi/ec.asl b/src/ec/google/chromeec/acpi/ec.asl index 69d608b65c..ef4054fa5d 100644 --- a/src/ec/google/chromeec/acpi/ec.asl +++ b/src/ec/google/chromeec/acpi/ec.asl @@ -178,22 +178,22 @@ Device (EC0) Store (\_SB.PCI0.LPCB.EC0.TINS (Arg0), Local0) /* Check for sensor not calibrated */ - If (LEqual (Local0, \_SB.PCI0.LPCB.EC0.TNCA)) { + If (Local0 == \_SB.PCI0.LPCB.EC0.TNCA) { Return (Zero) } /* Check for sensor not present */ - If (LEqual (Local0, \_SB.PCI0.LPCB.EC0.TNPR)) { + If (Local0 == \_SB.PCI0.LPCB.EC0.TNPR) { Return (Zero) } /* Check for sensor not powered */ - If (LEqual (Local0, \_SB.PCI0.LPCB.EC0.TNOP)) { + If (Local0 == \_SB.PCI0.LPCB.EC0.TNOP) { Return (Zero) } /* Check for sensor bad reading */ - If (LEqual (Local0, \_SB.PCI0.LPCB.EC0.TBAD)) { + If (Local0 == \_SB.PCI0.LPCB.EC0.TBAD) { Return (Zero) } @@ -539,7 +539,7 @@ Device (EC0) * DDPN = 0 is reserved for backwards compatibility. * If DDPN == 0 use TBMD to load appropriate DPTF table. */ - If (LEqual (^DDPN, 0)) { + If (^DDPN == 0) { Return (^TBMD) } Else { Local0 = ^DDPN - 1 diff --git a/src/ec/google/chromeec/acpi/keyboard_backlight.asl b/src/ec/google/chromeec/acpi/keyboard_backlight.asl index 2d4a0c57ad..4c306d50c3 100644 --- a/src/ec/google/chromeec/acpi/keyboard_backlight.asl +++ b/src/ec/google/chromeec/acpi/keyboard_backlight.asl @@ -23,11 +23,11 @@ Scope (\_SB) /* If query is unsupported, but this code is compiled * in, assume the backlight exists physically. */ - If (LEqual (1, \_SB.PCI0.LPCB.EC0.DFUD)) { + If (\_SB.PCI0.LPCB.EC0.DFUD == 1) { Return (0xf) } /* If EC reports that backlight exists, trust it */ - If (LEqual (1, \_SB.PCI0.LPCB.EC0.KBLE)) { + If (\_SB.PCI0.LPCB.EC0.KBLE == 1) { Return (0xf) } /* Otherwise: no device -> disable */ diff --git a/src/ec/google/chromeec/acpi/tbmc.asl b/src/ec/google/chromeec/acpi/tbmc.asl index 7be50d7063..1661296da6 100644 --- a/src/ec/google/chromeec/acpi/tbmc.asl +++ b/src/ec/google/chromeec/acpi/tbmc.asl @@ -7,7 +7,7 @@ Device (TBMC) Name (_DDN, "Tablet Motion Control") Method (TBMC) { - If (LEqual (^^RCTM, One)) { + If (^^RCTM == 1) { Return (0x1) } Else { Return (0x0) |