drivers/intel/gma/acpi: Use ASL 2.0 syntax to access arrays
Replace Index(FOO, 1337) with FOO[1337]. Change-Id: I534c1581e587908feeb06fd7725c5895649dcfb1 Signed-off-by: Felix Singer <felixsinger@posteo.net> Reviewed-on: https://review.coreboot.org/c/coreboot/+/60456 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: HAOUAS Elyes <ehaouas@noos.fr>
This commit is contained in:
parent
c13aea6810
commit
e55a7d160b
|
@ -42,7 +42,7 @@
|
||||||
{
|
{
|
||||||
Decrement (Local0)
|
Decrement (Local0)
|
||||||
}
|
}
|
||||||
XBCM (DerefOf (Index (BRIG, Local0)))
|
XBCM (DerefOf (BRIG[Local0]))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -60,6 +60,6 @@
|
||||||
{
|
{
|
||||||
Increment (Local0)
|
Increment (Local0)
|
||||||
}
|
}
|
||||||
XBCM (DerefOf (Index (BRIG, Local0)))
|
XBCM (DerefOf (BRIG[Local0]))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -123,8 +123,8 @@
|
||||||
Store (2, Local1)
|
Store (2, Local1)
|
||||||
While (LLess (Local1, Subtract (SizeOf (BRIG), 1))) {
|
While (LLess (Local1, Subtract (SizeOf (BRIG), 1))) {
|
||||||
/* Local[23]: adjacent values in BRIG */
|
/* Local[23]: adjacent values in BRIG */
|
||||||
Store (DeRefOf (Index (BRIG, Local1)), Local2)
|
Store (DeRefOf (BRIG[Local1]), Local2)
|
||||||
Store (DeRefOf (Index (BRIG, Add (Local1, 1))), Local3)
|
Store (DeRefOf (BRIG[Add (Local1, 1)]), Local3)
|
||||||
|
|
||||||
If (LLess (Local0, Local3)) {
|
If (LLess (Local0, Local3)) {
|
||||||
If (LOr (LLess (Local0, Local2),
|
If (LOr (LLess (Local0, Local2),
|
||||||
|
|
Loading…
Reference in New Issue