drivers/intel/gma/acpi: Replace Store(a,b) with ASL 2.0 syntax
Replace `Store (a, b)` with `b = a`.
Change-Id: Ifd3a814228df6a399fe1110abf5b5bc18e6fd6d2
Signed-off-by: Felix Singer <felixsinger@posteo.net>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/70629
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Eric Lai <eric_lai@quanta.corp-partner.google.com>
Reviewed-by: Elyes Haouas <ehaouas@noos.fr>
diff --git a/src/drivers/intel/gma/acpi/common.asl b/src/drivers/intel/gma/acpi/common.asl
index 0d7f576..59eae70 100644
--- a/src/drivers/intel/gma/acpi/common.asl
+++ b/src/drivers/intel/gma/acpi/common.asl
@@ -6,7 +6,7 @@
Method(BRID, 1, NotSerialized)
{
- Store (Match (BRIG, MEQ, Arg0, MTR, Zero, 2), Local0)
+ Local0 = Match (BRIG, MEQ, Arg0, MTR, Zero, 2)
If (Local0 == Ones)
{
Return (SizeOf(BRIG) - 1)
@@ -16,7 +16,7 @@
Method (XBCL, 0, NotSerialized)
{
- Store (1, BRCT)
+ BRCT = 1
Return (BRIG)
}
@@ -37,7 +37,7 @@
{
Notify (LCD0, 0x87)
} Else {
- Store (BRID (XBQC ()), Local0)
+ Local0 = BRID (XBQC ())
If (Local0 != 2)
{
Local0--
@@ -55,7 +55,7 @@
{
Notify (LCD0, 0x86)
} Else {
- Store (BRID (XBQC ()), Local0)
+ Local0 = BRID (XBQC ())
If (Local0 != SizeOf(BRIG) - 1)
{
Local0++