diff options
author | Felix Singer <felixsinger@posteo.net> | 2022-12-26 08:39:35 +0100 |
---|---|---|
committer | Felix Singer <felixsinger@posteo.net> | 2022-12-27 09:04:02 +0000 |
commit | dfbb634ae16065811894d67ff802c1e838ce0749 (patch) | |
tree | 0ad779089e19231a8e1c279ab40b3c9f195a680f /src/mainboard/google/glados/variants/caroline/include | |
parent | ca4b587f95c0f1ed64e187511781abdfd4c7ebfb (diff) |
mainboard/acpi: Replace constant "One" with actual number
Change-Id: Id1078b14a805eea53d2a7c5a8183a5413f26e115
Signed-off-by: Felix Singer <felixsinger@posteo.net>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/71521
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/mainboard/google/glados/variants/caroline/include')
-rw-r--r-- | src/mainboard/google/glados/variants/caroline/include/variant/acpi/mainboard.asl | 12 |
1 files changed, 6 insertions, 6 deletions
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 }) } } } |