summaryrefslogtreecommitdiff
path: root/src/ec/lenovo/h8/acpi
diff options
context:
space:
mode:
Diffstat (limited to 'src/ec/lenovo/h8/acpi')
-rw-r--r--src/ec/lenovo/h8/acpi/ec.asl6
-rw-r--r--src/ec/lenovo/h8/acpi/thermal.asl4
-rw-r--r--src/ec/lenovo/h8/acpi/thinkpad.asl20
3 files changed, 15 insertions, 15 deletions
diff --git a/src/ec/lenovo/h8/acpi/ec.asl b/src/ec/lenovo/h8/acpi/ec.asl
index 95841d3dd6..a1bf8bc5b7 100644
--- a/src/ec/lenovo/h8/acpi/ec.asl
+++ b/src/ec/lenovo/h8/acpi/ec.asl
@@ -69,7 +69,7 @@ Device(EC)
if (^HKEY.INIT == 0) {
^HKEY.WBDC = BTEB
^HKEY.WWAN = WWEB
- ^HKEY.INIT = One
+ ^HKEY.INIT = 1
}
}
}
@@ -318,11 +318,11 @@ Device(EC)
Method (FANE, 1, Serialized)
{
If (Arg0) {
- FAND = One
+ FAND = 1
FANA = Zero
} Else {
FAND = Zero
- FANA = One
+ FANA = 1
}
}
diff --git a/src/ec/lenovo/h8/acpi/thermal.asl b/src/ec/lenovo/h8/acpi/thermal.asl
index 03abd758dd..6115eb687b 100644
--- a/src/ec/lenovo/h8/acpi/thermal.asl
+++ b/src/ec/lenovo/h8/acpi/thermal.asl
@@ -112,8 +112,8 @@ External (\PPKG, MethodObj)
* in another ACPI scope. Call a method that does it!
*/
Method (_ON) {
- \_SB.PCI0.LPCB.EC.FANE(One)
- \FLVL = One
+ \_SB.PCI0.LPCB.EC.FANE(1)
+ \FLVL = 1
Notify (\_TZ.THM0, NOTIFY_TZ_TRIPPTCHG)
}
diff --git a/src/ec/lenovo/h8/acpi/thinkpad.asl b/src/ec/lenovo/h8/acpi/thinkpad.asl
index fea97c15df..73eee52deb 100644
--- a/src/ec/lenovo/h8/acpi/thinkpad.asl
+++ b/src/ec/lenovo/h8/acpi/thinkpad.asl
@@ -51,7 +51,7 @@ Device (HKEY)
/* Report event */
Method (RHK, 1, NotSerialized) {
- Local0 = One << (Arg0 - 1)
+ Local0 = 1 << (Arg0 - 1)
If (EMSK & Local0) {
BTN = Arg0
Notify (HKEY, 0x80)
@@ -60,7 +60,7 @@ Device (HKEY)
/* Report tablet */
Method (RTAB, 1, NotSerialized) {
- Local0 = One << (Arg0 - 1)
+ Local0 = 1 << (Arg0 - 1)
If (ETAB & Local0) {
BTAB = Arg0
Notify (HKEY, 0x80)
@@ -84,7 +84,7 @@ Device (HKEY)
/* Enable/disable event. */
Method (MHKM, 2, NotSerialized) {
If (Arg0 <= 0x20) {
- Local0 = One << (Arg0 - 1)
+ Local0 = 1 << (Arg0 - 1)
If (Arg1)
{
DHKN |= Local0
@@ -159,10 +159,10 @@ Device (HKEY)
*/
Method (GBDC, 0)
{
- HAST = One
+ HAST = 1
If (HBDC) {
- Local0 = One
+ Local0 = 1
If(\_SB.PCI0.LPCB.EC.BTEB)
{
Local0 |= 2
@@ -181,7 +181,7 @@ Device (HKEY)
*/
Method (SBDC, 1)
{
- HAST = One
+ HAST = 1
If (HBDC) {
Local0 = (Arg0 & 2) >> 1
@@ -201,10 +201,10 @@ Device (HKEY)
*/
Method (GWAN, 0)
{
- HAST = One
+ HAST = 1
If (HWAN) {
- Local0 = One
+ Local0 = 1
If(\_SB.PCI0.LPCB.EC.WWEB)
{
Local0 |= 2
@@ -223,7 +223,7 @@ Device (HKEY)
*/
Method (SWAN, 1)
{
- HAST = One
+ HAST = 1
If (HWAN) {
Local0 = (Arg0 & 2) >> 1
@@ -270,7 +270,7 @@ Device (HKEY)
Method (GUWB, 0)
{
If (HUWB) {
- Local0 = One
+ Local0 = 1
If(\_SB.PCI0.LPCB.EC.UWBE)
{
Local0 |= 2