aboutsummaryrefslogtreecommitdiff
path: root/src/ec
diff options
context:
space:
mode:
authorFelix Singer <felixsinger@posteo.net>2022-12-26 08:17:06 +0100
committerFelix Singer <felixsinger@posteo.net>2022-12-27 09:03:34 +0000
commitca4b587f95c0f1ed64e187511781abdfd4c7ebfb (patch)
treebc5c5a324c65b107fd6d992167168b0383a63503 /src/ec
parentb4767ce169b202af2a9091275e30881172810fc6 (diff)
{superio,ec}/acpi: Replace constant "One" with actual number
Change-Id: I5c77b6d1e1dc1134f62dcb3e93df01dc9c2f386c Signed-off-by: Felix Singer <felixsinger@posteo.net> Reviewed-on: https://review.coreboot.org/c/coreboot/+/71520 Reviewed-by: Elyes Haouas <ehaouas@noos.fr> Reviewed-by: Eric Lai <eric_lai@quanta.corp-partner.google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/ec')
-rw-r--r--src/ec/compal/ene932/acpi/battery.asl2
-rw-r--r--src/ec/google/chromeec/acpi/battery.asl12
-rw-r--r--src/ec/google/wilco/acpi/battery.asl2
-rw-r--r--src/ec/google/wilco/acpi/ec.asl8
-rw-r--r--src/ec/google/wilco/acpi/event.asl2
-rw-r--r--src/ec/google/wilco/acpi/privacy.asl4
-rw-r--r--src/ec/google/wilco/acpi/ucsi.asl10
-rw-r--r--src/ec/google/wilco/acpi/vbtn.asl4
-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
-rw-r--r--src/ec/purism/librem-ec/acpi/ac.asl2
-rw-r--r--src/ec/purism/librem-ec/acpi/battery.asl6
-rw-r--r--src/ec/purism/librem-ec/acpi/ec.asl2
-rw-r--r--src/ec/purism/librem-ec/acpi/hid.asl6
-rw-r--r--src/ec/purism/librem-ec/acpi/librem-ec.asl2
-rw-r--r--src/ec/purism/librem-ec/acpi/lid.asl2
-rw-r--r--src/ec/purism/librem/acpi/battery.asl2
-rw-r--r--src/ec/quanta/ene_kb3940q/acpi/ec.asl2
-rw-r--r--src/ec/quanta/it8518/acpi/battery.asl14
-rw-r--r--src/ec/quanta/it8518/acpi/ec.asl6
-rw-r--r--src/ec/smsc/mec1308/acpi/battery.asl4
-rw-r--r--src/ec/smsc/mec1308/acpi/ec.asl24
-rw-r--r--src/ec/starlabs/merlin/acpi/ec.asl2
-rw-r--r--src/ec/system76/ec/acpi/ac.asl2
-rw-r--r--src/ec/system76/ec/acpi/battery.asl6
-rw-r--r--src/ec/system76/ec/acpi/ec.asl2
-rw-r--r--src/ec/system76/ec/acpi/hid.asl6
-rw-r--r--src/ec/system76/ec/acpi/lid.asl2
-rw-r--r--src/ec/system76/ec/acpi/s76.asl2
30 files changed, 84 insertions, 84 deletions
diff --git a/src/ec/compal/ene932/acpi/battery.asl b/src/ec/compal/ene932/acpi/battery.asl
index 9c70b594bc..898fe02742 100644
--- a/src/ec/compal/ene932/acpi/battery.asl
+++ b/src/ec/compal/ene932/acpi/battery.asl
@@ -33,7 +33,7 @@ Device (BATX)
Name (BTNM, Zero) // Battery number
// Workaround for full battery status, enabled by default
- Name (BFWK, One)
+ Name (BFWK, 1)
// Method to enable full battery workaround
Method (BFWE)
diff --git a/src/ec/google/chromeec/acpi/battery.asl b/src/ec/google/chromeec/acpi/battery.asl
index 013a5e7c7b..a0b05f370a 100644
--- a/src/ec/google/chromeec/acpi/battery.asl
+++ b/src/ec/google/chromeec/acpi/battery.asl
@@ -7,7 +7,7 @@ Mutex (BATM, 0)
// Wait for desired battery index to be presented in shared memory
// Arg0 = battery index
-// Returns Zero on success, One on error.
+// Returns Zero on success, 1 on error.
Method (BTSW, 1)
{
#ifdef EC_ENABLE_SECOND_BATTERY_DEVICE
@@ -15,7 +15,7 @@ Method (BTSW, 1)
Return (Zero)
}
If (Arg0 >= BTCN) {
- Return (One)
+ Return (1)
}
\_SB.PCI0.LPCB.EC0.BTID = Arg0
Local0 = 5 // Timeout 5 msec
@@ -25,12 +25,12 @@ Method (BTSW, 1)
Local0--
If (Local0 == 0)
{
- Return (One)
+ Return (1)
}
}
#else
If (Arg0 != 0) {
- Return (One)
+ Return (1)
}
#endif
Return (Zero)
@@ -285,7 +285,7 @@ Device (BAT0)
// Method to enable full battery workaround
Method (BFWE)
{
- BFWK = One
+ BFWK = 1
}
// Method to disable full battery workaround
@@ -375,7 +375,7 @@ Device (BAT1)
// Method to enable full battery workaround
Method (BFWE)
{
- BFWK = One
+ BFWK = 1
}
// Method to disable full battery workaround
diff --git a/src/ec/google/wilco/acpi/battery.asl b/src/ec/google/wilco/acpi/battery.asl
index 023507273f..d6b765578a 100644
--- a/src/ec/google/wilco/acpi/battery.asl
+++ b/src/ec/google/wilco/acpi/battery.asl
@@ -41,7 +41,7 @@ Method (BSTR, 1, Serialized)
W (SSEL, Arg0)
/* Fill buffer until NUL or max string length is read */
- Name (IBUF, Buffer (Local0 + One) {})
+ Name (IBUF, Buffer (Local0 + 1) {})
For (Local1 = Zero, Local1 < Local0, Local1++) {
Local2 = R (BSBS)
If (!Local2) {
diff --git a/src/ec/google/wilco/acpi/ec.asl b/src/ec/google/wilco/acpi/ec.asl
index d552604406..b858b0cd8d 100644
--- a/src/ec/google/wilco/acpi/ec.asl
+++ b/src/ec/google/wilco/acpi/ec.asl
@@ -36,13 +36,13 @@ Device (EC0)
W (ERDY, Arg1)
/* Indicate that the OS supports S0ix */
- W (CSOS, One)
+ W (CSOS, 1)
/* Tell EC to stop emulating PS/2 mouse */
W (PS2M, Zero)
/* Enable DPTF support if enabled in devicetree */
- If (\DPTE == One) {
+ If (\DPTE == 1) {
W (DWST, Arg1)
}
@@ -146,7 +146,7 @@ Device (EC0)
If (Arg0) {
Printf ("EC Enter S0ix")
- W (CSEX, One)
+ W (CSEX, 1)
/*
* Read back from EC RAM after enabling S0ix
@@ -158,7 +158,7 @@ Device (EC0)
W (CSEX, Zero)
/* If UCSI event happened during S0ix send it now. */
- If (^UCEP == One) {
+ If (^UCEP == 1) {
^_Q79 ()
}
}
diff --git a/src/ec/google/wilco/acpi/event.asl b/src/ec/google/wilco/acpi/event.asl
index 4e24ee32de..47c2ecdaab 100644
--- a/src/ec/google/wilco/acpi/event.asl
+++ b/src/ec/google/wilco/acpi/event.asl
@@ -145,6 +145,6 @@ Method (_Q79, 0, Serialized)
^UCEP = Zero
} Else {
Printf ("EC _Q79 UCSI Event Masked in S0ix")
- ^UCEP = One
+ ^UCEP = 1
}
}
diff --git a/src/ec/google/wilco/acpi/privacy.asl b/src/ec/google/wilco/acpi/privacy.asl
index cc14b2179e..74e65596c9 100644
--- a/src/ec/google/wilco/acpi/privacy.asl
+++ b/src/ec/google/wilco/acpi/privacy.asl
@@ -13,13 +13,13 @@ Method (GPVX, 0, Serialized)
Return (Zero)
}
- Return (One)
+ Return (1)
}
/* Enable Privacy Screen */
Method (EPVX, 0, Serialized)
{
- W (EPCT, One)
+ W (EPCT, 1)
}
/* Disable Privacy Screen */
diff --git a/src/ec/google/wilco/acpi/ucsi.asl b/src/ec/google/wilco/acpi/ucsi.asl
index 1cf6394f53..6c33e1867a 100644
--- a/src/ec/google/wilco/acpi/ucsi.asl
+++ b/src/ec/google/wilco/acpi/ucsi.asl
@@ -5,7 +5,7 @@ Device (UCSI)
Name (_HID, "GOOG000E")
Name (_CID, EisaId ("PNP0CA0"))
Name (_DDN, "Wilco EC UCSI")
- Name (_UID, One)
+ Name (_UID, 1)
Name (_STA, 0xb)
/* Value written to EC control register to start UCSI command */
@@ -69,16 +69,16 @@ Device (UCSI)
Method (_DSM, 4, Serialized)
{
If (Arg0 != ToUUID ("6f8398c2-7ca4-11e4-ad36-631042b5008f")) {
- Return (Buffer (One) { Zero })
+ Return (Buffer (1) { Zero })
}
Switch (ToInteger (Arg2))
{
Case (Zero)
{
- Return (Buffer (One) { 0x07 })
+ Return (Buffer (1) { 0x07 })
}
- Case (One)
+ Case (1)
{
/* Write Message Out */
W (^^UMO0, ^MGO0)
@@ -138,6 +138,6 @@ Device (UCSI)
^CCI3 = R (^^UCI3)
}
}
- Return (Buffer (One) { Zero })
+ Return (Buffer (1) { Zero })
}
}
diff --git a/src/ec/google/wilco/acpi/vbtn.asl b/src/ec/google/wilco/acpi/vbtn.asl
index bc9dd3410c..622d5910bc 100644
--- a/src/ec/google/wilco/acpi/vbtn.asl
+++ b/src/ec/google/wilco/acpi/vbtn.asl
@@ -30,7 +30,7 @@ Name (VLAP, 0xcd) /* Laptop Mode */
Device (VBTN)
{
Name (_HID, "INT33D6")
- Name (_UID, One)
+ Name (_UID, 1)
Name (_DDN, "Intel Virtual Button Driver")
/*
@@ -70,7 +70,7 @@ Device (VBTO)
{
Name (_HID, "INT33D3")
Name (_CID, "PNP0C60")
- Name (_UID, One)
+ Name (_UID, 1)
Name (_DDN, "Laptop/tablet mode indicator driver")
Method (_STA, 0)
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
diff --git a/src/ec/purism/librem-ec/acpi/ac.asl b/src/ec/purism/librem-ec/acpi/ac.asl
index 7326676198..b417e03c53 100644
--- a/src/ec/purism/librem-ec/acpi/ac.asl
+++ b/src/ec/purism/librem-ec/acpi/ac.asl
@@ -8,7 +8,7 @@ Device (AC)
_SB
})
- Name (ACFG, One)
+ Name (ACFG, 1)
Method (_PSR, 0, NotSerialized) // _PSR: Power Source
{
diff --git a/src/ec/purism/librem-ec/acpi/battery.asl b/src/ec/purism/librem-ec/acpi/battery.asl
index 9dc401c795..0266c2a75d 100644
--- a/src/ec/purism/librem-ec/acpi/battery.asl
+++ b/src/ec/purism/librem-ec/acpi/battery.asl
@@ -32,10 +32,10 @@ Device (BAT0)
Name (PBIF, Package (0x0D)
{
- One, // 0 - Power Unit
+ 1, // 0 - Power Unit
0xFFFFFFFF, // 1 - Design Capacity
0xFFFFFFFF, // 2 - Last Full Charge Capacity
- One, // 3 - Battery Technology
+ 1, // 3 - Battery Technology
BATTERY_DESIGN_VOLTAGE_MV, // 4 - Design Voltage
Zero, // 5 - Design Capacity of Warning
Zero, // 6 - Design Capacity of Low
@@ -129,7 +129,7 @@ Device (BAT0)
}
Else
{
- Local0 |= One
+ Local0 |= 1
Local1 = (^^PCI0.LPCB.EC0.BPR0 & 0xFFFF)
}
diff --git a/src/ec/purism/librem-ec/acpi/ec.asl b/src/ec/purism/librem-ec/acpi/ec.asl
index 4e7b4a1f15..bceb23c92d 100644
--- a/src/ec/purism/librem-ec/acpi/ec.asl
+++ b/src/ec/purism/librem-ec/acpi/ec.asl
@@ -35,7 +35,7 @@ Device (\_SB.PCI0.LPCB.EC0)
Method (_REG, 2, Serialized) // _REG: Region Availability
{
Printf ("EC: _REG %o %o", ToHexString(Arg0), ToHexString(Arg1))
- If ((Arg0 == 0x03) && (Arg1 == One)) {
+ If ((Arg0 == 0x03) && (Arg1 == 1)) {
// Enable hardware touchpad lock, airplane mode, and keyboard backlight keys
ECOS = 1
diff --git a/src/ec/purism/librem-ec/acpi/hid.asl b/src/ec/purism/librem-ec/acpi/hid.asl
index 6610c2e1bc..8bbb65bc45 100644
--- a/src/ec/purism/librem-ec/acpi/hid.asl
+++ b/src/ec/purism/librem-ec/acpi/hid.asl
@@ -25,7 +25,7 @@ Device (HIDD)
Method (HPEM, 1, Serialized)
{
- HBSY = One
+ HBSY = 1
HIDX = Arg0
Notify (HIDD, 0xC0)
@@ -36,11 +36,11 @@ Device (HIDD)
Local0++
}
- If (HBSY == One)
+ If (HBSY == 1)
{
HBSY = Zero
HIDX = Zero
- Return (One)
+ Return (1)
}
Else
{
diff --git a/src/ec/purism/librem-ec/acpi/librem-ec.asl b/src/ec/purism/librem-ec/acpi/librem-ec.asl
index ea227c74be..5f1e53d666 100644
--- a/src/ec/purism/librem-ec/acpi/librem-ec.asl
+++ b/src/ec/purism/librem-ec/acpi/librem-ec.asl
@@ -110,7 +110,7 @@ Device (LIEC) {
Method (GKBL, 0, Serialized) {
Local0 = 0
If (^^PCI0.LPCB.EC0.ECOK) {
- ^^PCI0.LPCB.EC0.FDAT = One
+ ^^PCI0.LPCB.EC0.FDAT = 1
^^PCI0.LPCB.EC0.FCMD = 0xCA
Local0 = ^^PCI0.LPCB.EC0.FBUF
^^PCI0.LPCB.EC0.FCMD = Zero
diff --git a/src/ec/purism/librem-ec/acpi/lid.asl b/src/ec/purism/librem-ec/acpi/lid.asl
index 723dd6dd98..0a643416e3 100644
--- a/src/ec/purism/librem-ec/acpi/lid.asl
+++ b/src/ec/purism/librem-ec/acpi/lid.asl
@@ -10,7 +10,7 @@ Device (LID0)
If (^^PCI0.LPCB.EC0.ECOK) {
Return (^^PCI0.LPCB.EC0.LSTE)
} Else {
- Return (One)
+ Return (1)
}
}
diff --git a/src/ec/purism/librem/acpi/battery.asl b/src/ec/purism/librem/acpi/battery.asl
index 742dd250e6..94c6462264 100644
--- a/src/ec/purism/librem/acpi/battery.asl
+++ b/src/ec/purism/librem/acpi/battery.asl
@@ -60,7 +60,7 @@ Device (BAT)
Name (DLOW, 10)
/* Workaround for full battery status, enabled by default */
- Name (BFWK, One)
+ Name (BFWK, 1)
/* Method to enable full battery workaround */
Method (BFWE)
diff --git a/src/ec/quanta/ene_kb3940q/acpi/ec.asl b/src/ec/quanta/ene_kb3940q/acpi/ec.asl
index f60238b950..cc12a2a295 100644
--- a/src/ec/quanta/ene_kb3940q/acpi/ec.asl
+++ b/src/ec/quanta/ene_kb3940q/acpi/ec.asl
@@ -205,7 +205,7 @@ Device (EC0)
Method (_Q10, 0, NotSerialized)
{
Printf ("AC Insertion Event 0x10")
- \PWRS = One
+ \PWRS = 1
Notify (AC, 0x80)
Notify (BATX, 0x80)
\PNOT ()
diff --git a/src/ec/quanta/it8518/acpi/battery.asl b/src/ec/quanta/it8518/acpi/battery.asl
index fbbae1fdf2..4f3834a599 100644
--- a/src/ec/quanta/it8518/acpi/battery.asl
+++ b/src/ec/quanta/it8518/acpi/battery.asl
@@ -44,12 +44,12 @@ Device (BATX)
})
// Workaround for full battery status, enabled by default
- Name (BFWK, One)
+ Name (BFWK, 1)
// Method to enable full battery workaround
Method (BFWE)
{
- BFWK = One
+ BFWK = 1
}
// Method to disable full battery workaround
@@ -97,7 +97,7 @@ Device (BATX)
//
// Information ID 1 -
//
- HIID = One
+ HIID = 1
WAEC ()
//
@@ -106,7 +106,7 @@ Device (BATX)
// ACPI spec : 0 - mWh : 1 - mAh
//
Local7 = SBCM
- PBIF[0] = Local7 ^ One
+ PBIF[0] = Local7 ^ 1
//
// Information ID 0 -
@@ -224,7 +224,7 @@ Device (BATX)
{
if (HB0S & 0x40)
{
- Local0 = One
+ Local0 = 1
}
Else
{
@@ -249,7 +249,7 @@ Device (BATX)
Else
{
// Always discharging when on battery power
- Local1 = One
+ Local1 = 1
}
// Flag if the battery level is critical
@@ -282,7 +282,7 @@ Device (BATX)
}
}
- Local6 = DerefOf (PBIF[0]) ^ One
+ Local6 = DerefOf (PBIF[0]) ^ 1
If (Local6)
{
diff --git a/src/ec/quanta/it8518/acpi/ec.asl b/src/ec/quanta/it8518/acpi/ec.asl
index b05b3c7ad0..b510b8ab1a 100644
--- a/src/ec/quanta/it8518/acpi/ec.asl
+++ b/src/ec/quanta/it8518/acpi/ec.asl
@@ -550,7 +550,7 @@ Device (EC0)
\LIDS = ~HPLD
// Enable OS control of fan speed
- // TODO FCOS = One
+ // TODO FCOS = 1
// Force a read of CPU temperature
// TODO Which temperature corresponds to the CPU?
@@ -593,7 +593,7 @@ Device (EC0)
// AC Power Connected
Method (_Q26, 0, NotSerialized)
{
- \PWRS = One
+ \PWRS = 1
Notify (AC, 0x80)
Notify (BATX, 0x80)
\PNOT ()
@@ -610,7 +610,7 @@ Device (EC0)
// LID Open
Method (_Q2A)
{
- \LIDS = One
+ \LIDS = 1
Notify (\_SB.LID0, 0x80)
}
diff --git a/src/ec/smsc/mec1308/acpi/battery.asl b/src/ec/smsc/mec1308/acpi/battery.asl
index 09f3bd51ad..5571160055 100644
--- a/src/ec/smsc/mec1308/acpi/battery.asl
+++ b/src/ec/smsc/mec1308/acpi/battery.asl
@@ -42,12 +42,12 @@ Device (BAT0)
Name (BSTP, Zero)
// Workaround for full battery status, enabled by default
- Name (BFWK, One)
+ Name (BFWK, 1)
// Method to enable full battery workaround
Method (BFWE)
{
- BFWK = One
+ BFWK = 1
}
// Method to disable full battery workaround
diff --git a/src/ec/smsc/mec1308/acpi/ec.asl b/src/ec/smsc/mec1308/acpi/ec.asl
index 214e89b4c0..4e8e1cd55f 100644
--- a/src/ec/smsc/mec1308/acpi/ec.asl
+++ b/src/ec/smsc/mec1308/acpi/ec.asl
@@ -64,7 +64,7 @@ Device (EC0)
\LIDS = LIDS
// Enable OS control of fan speed
- FCOS = One
+ FCOS = 1
// Force a read of CPU temperature
Local0 = CPUT
@@ -76,14 +76,14 @@ Device (EC0)
{
Method (_STA) {
If (\FLVL <= 0) {
- Return (One)
+ Return (1)
} Else {
Return (Zero)
}
}
Method (_ON) {
If (FCOS) {
- FSL0 = One
+ FSL0 = 1
\FLVL = 0
Notify (\_TZ.THRM, 0x81)
}
@@ -101,14 +101,14 @@ Device (EC0)
{
Method (_STA) {
If (\FLVL <= 1) {
- Return (One)
+ Return (1)
} Else {
Return (Zero)
}
}
Method (_ON) {
If (FCOS) {
- FSL1 = One
+ FSL1 = 1
\FLVL = 1
Notify (\_TZ.THRM, 0x81)
}
@@ -126,14 +126,14 @@ Device (EC0)
{
Method (_STA) {
If (\FLVL <= 2) {
- Return (One)
+ Return (1)
} Else {
Return (Zero)
}
}
Method (_ON) {
If (FCOS) {
- FSL2 = One
+ FSL2 = 1
\FLVL = 2
Notify (\_TZ.THRM, 0x81)
}
@@ -151,14 +151,14 @@ Device (EC0)
{
Method (_STA) {
If (\FLVL <= 3) {
- Return (One)
+ Return (1)
} Else {
Return (Zero)
}
}
Method (_ON) {
If (FCOS) {
- FSL3 = One
+ FSL3 = 1
\FLVL = 3
Notify (\_TZ.THRM, 0x81)
}
@@ -176,14 +176,14 @@ Device (EC0)
{
Method (_STA) {
If (\FLVL <= 4) {
- Return (One)
+ Return (1)
} Else {
Return (Zero)
}
}
Method (_ON) {
If (FCOS) {
- FSL4 = One
+ FSL4 = 1
\FLVL = 4
Notify (\_TZ.THRM, 0x81)
}
@@ -235,7 +235,7 @@ Device (EC0)
// AC Power Connected
Method (_Q51, 0, NotSerialized)
{
- \PWRS = One
+ \PWRS = 1
Notify (AC, 0x80)
\PNOT ()
}
diff --git a/src/ec/starlabs/merlin/acpi/ec.asl b/src/ec/starlabs/merlin/acpi/ec.asl
index 4e9c658736..9de3bc2eae 100644
--- a/src/ec/starlabs/merlin/acpi/ec.asl
+++ b/src/ec/starlabs/merlin/acpi/ec.asl
@@ -76,7 +76,7 @@ Scope (\_SB.PCI0.LPCB)
Method (ECRD, 1, Serialized, 0, IntObj, FieldUnitObj)
{
//
- // Check for ECDT support, set ECAV to One if ECDT is supported by OS
+ // Check for ECDT support, set ECAV to 1 if ECDT is supported by OS
// Only check once at beginning since ECAV might be clear later in certain conditions
//
If (ECTK) {
diff --git a/src/ec/system76/ec/acpi/ac.asl b/src/ec/system76/ec/acpi/ac.asl
index 7326676198..b417e03c53 100644
--- a/src/ec/system76/ec/acpi/ac.asl
+++ b/src/ec/system76/ec/acpi/ac.asl
@@ -8,7 +8,7 @@ Device (AC)
_SB
})
- Name (ACFG, One)
+ Name (ACFG, 1)
Method (_PSR, 0, NotSerialized) // _PSR: Power Source
{
diff --git a/src/ec/system76/ec/acpi/battery.asl b/src/ec/system76/ec/acpi/battery.asl
index 027bbad0d6..d2857a53fa 100644
--- a/src/ec/system76/ec/acpi/battery.asl
+++ b/src/ec/system76/ec/acpi/battery.asl
@@ -30,10 +30,10 @@ Device (BAT0)
Name (PBIF, Package (0x0D)
{
- One, // 0 - Power Unit
+ 1, // 0 - Power Unit
0xFFFFFFFF, // 1 - Design Capacity
0xFFFFFFFF, // 2 - Last Full Charge Capacity
- One, // 3 - Battery Technology
+ 1, // 3 - Battery Technology
0xFFFFFFFF, // 4 - Design Voltage
Zero, // 5 - Design Capacity of Warning
Zero, // 6 - Design Capacity of Low
@@ -205,7 +205,7 @@ Device (BAT0)
}
Else
{
- Local0 |= One
+ Local0 |= 1
Local1 = (^^PCI0.LPCB.EC0.BPR0 & 0xFFFF)
}
diff --git a/src/ec/system76/ec/acpi/ec.asl b/src/ec/system76/ec/acpi/ec.asl
index b24137ca4f..ff245585c2 100644
--- a/src/ec/system76/ec/acpi/ec.asl
+++ b/src/ec/system76/ec/acpi/ec.asl
@@ -35,7 +35,7 @@ Device (\_SB.PCI0.LPCB.EC0)
Method (_REG, 2, Serialized) // _REG: Region Availability
{
Debug = Concatenate("EC: _REG", Concatenate(ToHexString(Arg0), Concatenate(" ", ToHexString(Arg1))))
- If ((Arg0 == 0x03) && (Arg1 == One)) {
+ If ((Arg0 == 0x03) && (Arg1 == 1)) {
// Enable hardware touchpad lock, airplane mode, and keyboard backlight keys
ECOS = 1
diff --git a/src/ec/system76/ec/acpi/hid.asl b/src/ec/system76/ec/acpi/hid.asl
index 6610c2e1bc..8bbb65bc45 100644
--- a/src/ec/system76/ec/acpi/hid.asl
+++ b/src/ec/system76/ec/acpi/hid.asl
@@ -25,7 +25,7 @@ Device (HIDD)
Method (HPEM, 1, Serialized)
{
- HBSY = One
+ HBSY = 1
HIDX = Arg0
Notify (HIDD, 0xC0)
@@ -36,11 +36,11 @@ Device (HIDD)
Local0++
}
- If (HBSY == One)
+ If (HBSY == 1)
{
HBSY = Zero
HIDX = Zero
- Return (One)
+ Return (1)
}
Else
{
diff --git a/src/ec/system76/ec/acpi/lid.asl b/src/ec/system76/ec/acpi/lid.asl
index 45e646acbb..26acc83462 100644
--- a/src/ec/system76/ec/acpi/lid.asl
+++ b/src/ec/system76/ec/acpi/lid.asl
@@ -10,7 +10,7 @@ Device (LID0)
If (^^PCI0.LPCB.EC0.ECOK) {
Return (^^PCI0.LPCB.EC0.LSTE)
} Else {
- Return (One)
+ Return (1)
}
}
diff --git a/src/ec/system76/ec/acpi/s76.asl b/src/ec/system76/ec/acpi/s76.asl
index 8db49df543..78614ee0ea 100644
--- a/src/ec/system76/ec/acpi/s76.asl
+++ b/src/ec/system76/ec/acpi/s76.asl
@@ -97,7 +97,7 @@ Device (S76D) {
Method (GKBL, 0, Serialized) {
Local0 = 0
If (^^PCI0.LPCB.EC0.ECOK) {
- ^^PCI0.LPCB.EC0.FDAT = One
+ ^^PCI0.LPCB.EC0.FDAT = 1
^^PCI0.LPCB.EC0.FCMD = 0xCA
Local0 = ^^PCI0.LPCB.EC0.FBUF
^^PCI0.LPCB.EC0.FCMD = Zero