From dfbb634ae16065811894d67ff802c1e838ce0749 Mon Sep 17 00:00:00 2001 From: Felix Singer Date: Mon, 26 Dec 2022 08:39:35 +0100 Subject: mainboard/acpi: Replace constant "One" with actual number Change-Id: Id1078b14a805eea53d2a7c5a8183a5413f26e115 Signed-off-by: Felix Singer Reviewed-on: https://review.coreboot.org/c/coreboot/+/71521 Reviewed-by: Elyes Haouas Reviewed-by: Eric Lai Tested-by: build bot (Jenkins) --- .../variants/caroline/include/variant/acpi/mainboard.asl | 12 ++++++------ .../glados/variants/chell/include/variant/acpi/mainboard.asl | 6 +++--- 2 files changed, 9 insertions(+), 9 deletions(-) (limited to 'src/mainboard/google/glados/variants') diff --git a/src/mainboard/google/glados/variants/caroline/include/variant/acpi/mainboard.asl b/src/mainboard/google/glados/variants/caroline/include/variant/acpi/mainboard.asl index c942e72e20..927476ffea 100644 --- a/src/mainboard/google/glados/variants/caroline/include/variant/acpi/mainboard.asl +++ b/src/mainboard/google/glados/variants/caroline/include/variant/acpi/mainboard.asl @@ -90,22 +90,22 @@ Scope (\_SB.PCI0.I2C2) If (Arg0 == ToUUID ("3cdff6f7-4267-4555-ad05-b30a3d8938de")) { If (Arg2 == Zero) { /* Function 0 - Query */ - If (Arg1 == One) { + If (Arg1 == 1) { /* Revision 1 Function 1 */ - Return (Buffer (One) { 0x03 }) + Return (Buffer (1) { 0x03 }) } Else { /* Revision 2+ not supported */ - Return (Buffer (One) { 0x00 }) + Return (Buffer (1) { 0x00 }) } - } ElseIf (Arg2 == One) { + } ElseIf (Arg2 == 1) { /* Function 1 - HID Descriptor Addr */ Return (0x0001) } Else { /* Function 2+ not supported */ - Return (Buffer (One) { 0x00 }) + Return (Buffer (1) { 0x00 }) } } Else { - Return (Buffer (One) { 0x00 }) + Return (Buffer (1) { 0x00 }) } } } diff --git a/src/mainboard/google/glados/variants/chell/include/variant/acpi/mainboard.asl b/src/mainboard/google/glados/variants/chell/include/variant/acpi/mainboard.asl index 15d979d583..b37a411853 100644 --- a/src/mainboard/google/glados/variants/chell/include/variant/acpi/mainboard.asl +++ b/src/mainboard/google/glados/variants/chell/include/variant/acpi/mainboard.asl @@ -14,7 +14,7 @@ Scope (\_SB.PCI0.XHCI.RHUB.HS01) // Visible Method (_PLD, 0, NotSerialized) { - Return (GPLD (One)) + Return (GPLD (1)) } } Scope (\_SB.PCI0.XHCI.RHUB.HS02) @@ -31,7 +31,7 @@ Scope (\_SB.PCI0.XHCI.RHUB.HS02) // Visible Method (_PLD, 0, NotSerialized) { - Return (GPLD (One)) + Return (GPLD (1)) } } Scope (\_SB.PCI0.XHCI.RHUB.HS03) @@ -82,7 +82,7 @@ Scope (\_SB.PCI0.XHCI.RHUB.HS05) // Visible Method (_PLD, 0, NotSerialized) { - Return (GPLD (One)) + Return (GPLD (1)) } } Scope (\_SB.PCI0.XHCI.RHUB.HS07) -- cgit v1.2.3