summaryrefslogtreecommitdiff
path: root/src/soc/intel/icelake/acpi
diff options
context:
space:
mode:
authorFelix Singer <felixsinger@posteo.net>2022-12-16 04:15:14 +0100
committerFelix Held <felix-coreboot@felixheld.de>2022-12-19 16:16:30 +0000
commit251d86bad1f3fb78eaa0fd93798644c5f8bb295c (patch)
treeaa3e6059401cdacf4fc0410c81a0fa23a402d749 /src/soc/intel/icelake/acpi
parentf3649f03f3fd0f5ff8b6e08a3a2e313ed670d3fa (diff)
tree: Replace LAnd(a,b) with ASL 2.0 syntax
Replace `LAnd (a, b)` with `a && b`. Change-Id: I6b7b958e2d2a43926663a8dc8755613abb07e949 Signed-off-by: Felix Singer <felixsinger@posteo.net> Reviewed-on: https://review.coreboot.org/c/coreboot/+/70844 Reviewed-by: Eric Lai <eric_lai@quanta.corp-partner.google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Elyes Haouas <ehaouas@noos.fr>
Diffstat (limited to 'src/soc/intel/icelake/acpi')
-rw-r--r--src/soc/intel/icelake/acpi/pch_hda.asl3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/soc/intel/icelake/acpi/pch_hda.asl b/src/soc/intel/icelake/acpi/pch_hda.asl
index 1073f37ae8..b3b5270186 100644
--- a/src/soc/intel/icelake/acpi/pch_hda.asl
+++ b/src/soc/intel/icelake/acpi/pch_hda.asl
@@ -36,8 +36,7 @@ Device (HDAS)
* NHLT Query only supported for revision 1 and
* if NHLT address and length are set in NVS.
*/
- If (LAnd (Arg1 == One,
- LAnd (NHLA != Zero, NHLL != Zero))) {
+ If (Arg1 == One && NHLA != Zero && NHLL != Zero) {
Return (Buffer (One) { 0x03 })
} Else {
Return (Buffer (One) { 0x01 })