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>
This commit is contained in:
committed by
Paul Fagerburg
parent
29821febc3
commit
3c799fa311
@@ -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
|
||||
|
@@ -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
|
||||
|
@@ -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 */
|
||||
|
@@ -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)
|
||||
|
Reference in New Issue
Block a user