{acpi,arch,soc}/acpi: Replace constant "One" with actual number
Change-Id: I3dfd7dd1de3bd27c35c195bd43c4a5b8c5a2dc53
Signed-off-by: Felix Singer <felixsinger@posteo.net>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/71522
Reviewed-by: Eric Lai <eric_lai@quanta.corp-partner.google.com>
Reviewed-by: Elyes Haouas <ehaouas@noos.fr>
Reviewed-by: Subrata Banik <subratabanik@google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
diff --git a/src/soc/intel/jasperlake/acpi/pch_hda.asl b/src/soc/intel/jasperlake/acpi/pch_hda.asl
index 340c765..dd031bf 100644
--- a/src/soc/intel/jasperlake/acpi/pch_hda.asl
+++ b/src/soc/intel/jasperlake/acpi/pch_hda.asl
@@ -36,10 +36,10 @@
* NHLT Query only supported for revision 1 and
* if NHLT address and length are set in NVS.
*/
- If ((Arg1 == One) && ((NHLA != Zero) && (NHLL != Zero))) {
- Return (Buffer (One) { 0x03 })
+ If ((Arg1 == 1) && ((NHLA != Zero) && (NHLL != Zero))) {
+ Return (Buffer (1) { 0x03 })
} Else {
- Return (Buffer (One) { 0x01 })
+ Return (Buffer (1) { 0x01 })
}
}
@@ -50,7 +50,7 @@
*
* Returns a pointer to NHLT table in memory.
*/
- If (Arg2 == One) {
+ If (Arg2 == 1) {
CreateQWordField (NBUF, ^NHLT._MIN, NBAS)
CreateQWordField (NBUF, ^NHLT._MAX, NMAS)
CreateQWordField (NBUF, ^NHLT._LEN, NLEN)
@@ -63,6 +63,6 @@
}
}
- Return (Buffer (One) { 0x00 })
+ Return (Buffer (1) { 0x00 })
}
}