summaryrefslogtreecommitdiff
path: root/src/ec/lenovo
diff options
context:
space:
mode:
Diffstat (limited to 'src/ec/lenovo')
-rw-r--r--src/ec/lenovo/h8/acpi/ec.asl4
-rw-r--r--src/ec/lenovo/h8/acpi/systemstatus.asl8
-rw-r--r--src/ec/lenovo/h8/acpi/thermal.asl4
3 files changed, 8 insertions, 8 deletions
diff --git a/src/ec/lenovo/h8/acpi/ec.asl b/src/ec/lenovo/h8/acpi/ec.asl
index 18463a5e4b..31ddc552b0 100644
--- a/src/ec/lenovo/h8/acpi/ec.asl
+++ b/src/ec/lenovo/h8/acpi/ec.asl
@@ -64,9 +64,9 @@ Device(EC)
Method (_REG, 2, NotSerialized)
{
/* Wait for ERAM driver loaded */
- if (LEqual(Arg1, One)) {
+ if (Arg1 == 1) {
/* Fill HKEY defaults on first boot */
- if (LEqual(^HKEY.INIT, Zero)) {
+ if (^HKEY.INIT == 0) {
Store (BTEB, ^HKEY.WBDC)
Store (WWEB, ^HKEY.WWAN)
Store (One, ^HKEY.INIT)
diff --git a/src/ec/lenovo/h8/acpi/systemstatus.asl b/src/ec/lenovo/h8/acpi/systemstatus.asl
index a5793be229..7598154282 100644
--- a/src/ec/lenovo/h8/acpi/systemstatus.asl
+++ b/src/ec/lenovo/h8/acpi/systemstatus.asl
@@ -5,7 +5,7 @@ Scope (\_SI)
{
Method(_SST, 1, NotSerialized)
{
- If (LEqual (Arg0, 0)) {
+ If (Arg0 == 0) {
/* Indicator off */
/* power TLED off */
@@ -14,7 +14,7 @@ Scope (\_SI)
\_SB.PCI0.LPCB.EC.TLED(0x07)
}
- If (LEqual (Arg0, 1)) {
+ If (Arg0 == 1) {
/* working state */
/* power TLED on */
@@ -23,7 +23,7 @@ Scope (\_SI)
\_SB.PCI0.LPCB.EC.TLED(0x07)
}
- If (LEqual (Arg0, 2)) {
+ If (Arg0 == 2) {
/* waking state */
/* power LED on */
@@ -32,7 +32,7 @@ Scope (\_SI)
\_SB.PCI0.LPCB.EC.TLED(0xc7)
}
- If (LEqual (Arg0, 3)) {
+ If (Arg0 == 3) {
/* sleep state */
/* power TLED pulsing */
diff --git a/src/ec/lenovo/h8/acpi/thermal.asl b/src/ec/lenovo/h8/acpi/thermal.asl
index 85cfdb5186..78890ebef6 100644
--- a/src/ec/lenovo/h8/acpi/thermal.asl
+++ b/src/ec/lenovo/h8/acpi/thermal.asl
@@ -73,7 +73,7 @@ External (\PPKG, MethodObj)
Method(_TMP) {
#if defined(EC_LENOVO_H8_ME_WORKAROUND)
/* Avoid tripping alarm if ME isn't booted at all yet */
- If (!MEB1 && LEqual (\_SB.PCI0.LPCB.EC.TMP0, 128)) {
+ If (!MEB1 && \_SB.PCI0.LPCB.EC.TMP0 == 128) {
Return (C2K(40))
}
Store (1, MEB1)
@@ -160,7 +160,7 @@ External (\PPKG, MethodObj)
Method(_TMP) {
#if defined(EC_LENOVO_H8_ME_WORKAROUND)
/* Avoid tripping alarm if ME isn't booted at all yet */
- If (!MEB2 && LEqual (\_SB.PCI0.LPCB.EC.TMP1, 128)) {
+ If (!MEB2 && \_SB.PCI0.LPCB.EC.TMP1 == 128) {
Return (C2K(40))
}
Store (1, MEB2)