drivers/intel/gma/acpi: Replace LEqual(a,b) with ASL 2.0 syntax
Replace `LEqual(a, b)` with `a == b`. Change-Id: I965a0718f6bca1dc27b928bdd9374857f5ea3215 Signed-off-by: Felix Singer <felixsinger@posteo.net> Reviewed-on: https://review.coreboot.org/c/coreboot/+/60660 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Sean Rhodes <sean@starlabs.systems>
This commit is contained in:
@@ -7,7 +7,7 @@
|
|||||||
Method(BRID, 1, NotSerialized)
|
Method(BRID, 1, NotSerialized)
|
||||||
{
|
{
|
||||||
Store (Match (BRIG, MEQ, Arg0, MTR, Zero, 2), Local0)
|
Store (Match (BRIG, MEQ, Arg0, MTR, Zero, 2), Local0)
|
||||||
If (LEqual (Local0, Ones))
|
If (Local0 == Ones)
|
||||||
{
|
{
|
||||||
Return (SizeOf(BRIG) - 1)
|
Return (SizeOf(BRIG) - 1)
|
||||||
}
|
}
|
||||||
|
@@ -42,11 +42,11 @@
|
|||||||
*/
|
*/
|
||||||
Method (XBCM, 1, Serialized)
|
Method (XBCM, 1, Serialized)
|
||||||
{
|
{
|
||||||
If (LEqual(ASLS, Zero))
|
If (ASLS == 0)
|
||||||
{
|
{
|
||||||
Return (Ones)
|
Return (Ones)
|
||||||
}
|
}
|
||||||
If (LEqual(And(MBOX, 0x4), Zero))
|
If (And(MBOX, 0x4) == 0)
|
||||||
{
|
{
|
||||||
Return (Ones)
|
Return (Ones)
|
||||||
}
|
}
|
||||||
@@ -60,7 +60,7 @@
|
|||||||
/* also set valid bit */
|
/* also set valid bit */
|
||||||
Store (Or (Local1, 0x80000000), BCLP)
|
Store (Or (Local1, 0x80000000), BCLP)
|
||||||
|
|
||||||
If (LEqual(ARDY, Zero))
|
If (ARDY == 0)
|
||||||
{
|
{
|
||||||
Return (Ones)
|
Return (Ones)
|
||||||
}
|
}
|
||||||
@@ -74,10 +74,10 @@
|
|||||||
While (LGreater(Local0, Zero))
|
While (LGreater(Local0, Zero))
|
||||||
{
|
{
|
||||||
Sleep (1)
|
Sleep (1)
|
||||||
If (LEqual (And (ASLC, 0x2), 0)) {
|
If (And (ASLC, 0x2) == 0) {
|
||||||
/* Request has been processed, check status: */
|
/* Request has been processed, check status: */
|
||||||
And (ShiftRight (ASLC, 12), 0x3, Local1)
|
And (ShiftRight (ASLC, 12), 0x3, Local1)
|
||||||
If (LEqual (Local1, 0)) {
|
If (Local1 == 0) {
|
||||||
Return (Zero)
|
Return (Zero)
|
||||||
} Else {
|
} Else {
|
||||||
Return (Ones)
|
Return (Ones)
|
||||||
@@ -144,7 +144,7 @@
|
|||||||
|
|
||||||
Method (XBCM, 1, NotSerialized)
|
Method (XBCM, 1, NotSerialized)
|
||||||
{
|
{
|
||||||
If (LEqual(^BOX3.XBCM (Arg0), Ones))
|
If (^BOX3.XBCM (Arg0) == Ones)
|
||||||
{
|
{
|
||||||
^LEGA.XBCM (Arg0)
|
^LEGA.XBCM (Arg0)
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user