summaryrefslogtreecommitdiff
path: root/src/ec
diff options
context:
space:
mode:
Diffstat (limited to 'src/ec')
-rw-r--r--src/ec/google/chromeec/acpi/battery.asl6
-rw-r--r--src/ec/google/chromeec/acpi/ec.asl10
-rw-r--r--src/ec/google/chromeec/acpi/keyboard_backlight.asl4
-rw-r--r--src/ec/google/chromeec/acpi/tbmc.asl2
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)