From ca4b587f95c0f1ed64e187511781abdfd4c7ebfb Mon Sep 17 00:00:00 2001 From: Felix Singer Date: Mon, 26 Dec 2022 08:17:06 +0100 Subject: {superio,ec}/acpi: Replace constant "One" with actual number Change-Id: I5c77b6d1e1dc1134f62dcb3e93df01dc9c2f386c Signed-off-by: Felix Singer Reviewed-on: https://review.coreboot.org/c/coreboot/+/71520 Reviewed-by: Elyes Haouas Reviewed-by: Eric Lai Tested-by: build bot (Jenkins) --- src/ec/smsc/mec1308/acpi/battery.asl | 4 ++-- src/ec/smsc/mec1308/acpi/ec.asl | 24 ++++++++++++------------ 2 files changed, 14 insertions(+), 14 deletions(-) (limited to 'src/ec/smsc/mec1308') 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 () } -- cgit v1.2.3