diff options
author | Felix Singer <felixsinger@posteo.net> | 2022-12-26 09:38:45 +0100 |
---|---|---|
committer | Felix Singer <felixsinger@posteo.net> | 2022-12-27 09:06:29 +0000 |
commit | 42efd7f593c9d270ff330d1282d9c569d1ec709a (patch) | |
tree | bccc1e9c9bb2f9aec6c76c55611f0aafdb4f6e9b /src/ec/lenovo/h8/acpi | |
parent | fa06bcba06c5842faae797629e9f72ec28d511c0 (diff) |
{superio,ec}/acpi: Replace constant "Zero" with actual number
Change-Id: I449ec5b0bbf3f24d51688efef151d3018d2848b2
Signed-off-by: Felix Singer <felixsinger@posteo.net>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/71524
Reviewed-by: Elyes Haouas <ehaouas@noos.fr>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/ec/lenovo/h8/acpi')
-rw-r--r-- | src/ec/lenovo/h8/acpi/ec.asl | 4 | ||||
-rw-r--r-- | src/ec/lenovo/h8/acpi/thermal.asl | 4 | ||||
-rw-r--r-- | src/ec/lenovo/h8/acpi/thinkpad.asl | 10 | ||||
-rw-r--r-- | src/ec/lenovo/h8/acpi/thinkpad_bat_thresholds.asl | 4 |
4 files changed, 11 insertions, 11 deletions
diff --git a/src/ec/lenovo/h8/acpi/ec.asl b/src/ec/lenovo/h8/acpi/ec.asl index a1bf8bc5b7..bc54d3b422 100644 --- a/src/ec/lenovo/h8/acpi/ec.asl +++ b/src/ec/lenovo/h8/acpi/ec.asl @@ -319,9 +319,9 @@ Device(EC) { If (Arg0) { FAND = 1 - FANA = Zero + FANA = 0 } Else { - FAND = Zero + FAND = 0 FANA = 1 } } diff --git a/src/ec/lenovo/h8/acpi/thermal.asl b/src/ec/lenovo/h8/acpi/thermal.asl index 6115eb687b..4f3b76e4dd 100644 --- a/src/ec/lenovo/h8/acpi/thermal.asl +++ b/src/ec/lenovo/h8/acpi/thermal.asl @@ -118,8 +118,8 @@ External (\PPKG, MethodObj) } Method (_OFF) { - \_SB.PCI0.LPCB.EC.FANE(Zero) - \FLVL = Zero + \_SB.PCI0.LPCB.EC.FANE(0) + \FLVL = 0 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 73eee52deb..1268e22b94 100644 --- a/src/ec/lenovo/h8/acpi/thinkpad.asl +++ b/src/ec/lenovo/h8/acpi/thinkpad.asl @@ -36,17 +36,17 @@ Device (HKEY) { Local0 = BTN If (Local0 != 0) { - BTN = Zero + BTN = 0 Local0 += 0x1000 Return (Local0) } Local0 = BTAB If (Local0 != 0) { - BTAB = Zero + BTAB = 0 Local0 += 0x5000 Return (Local0) } - Return (Zero) + Return (0) } /* Report event */ @@ -75,8 +75,8 @@ Device (HKEY) } Else { - EMSK = Zero - ETAB = Zero + EMSK = 0 + ETAB = 0 } EN = Arg0 } diff --git a/src/ec/lenovo/h8/acpi/thinkpad_bat_thresholds.asl b/src/ec/lenovo/h8/acpi/thinkpad_bat_thresholds.asl index db0333d0bb..b1ff65f100 100644 --- a/src/ec/lenovo/h8/acpi/thinkpad_bat_thresholds.asl +++ b/src/ec/lenovo/h8/acpi/thinkpad_bat_thresholds.asl @@ -17,7 +17,7 @@ * = 2: Secondary battery * = Others: Reserved (0) * Bit 31-10: Reserved (0) - * Must be Zero + * Must be 0 * * Out Parameter: * DWORD @@ -110,7 +110,7 @@ Method (BCCS, 1, NotSerialized) * DWORD * Bit 7-0:BatteryID * Bit 31-8: Reserved (0) - * Must be Zero + * Must be 0 * * Out Parameter: * DWORD |