drivers/intel/gma/acpi: Replace Add(a,b) with ASL 2.0 syntax
Replace `Add (a, b)` with `a + b`. Change-Id: I9d9f1d04f39ffd420655d9297b01b8811339ad08 Signed-off-by: Felix Singer <felixsinger@posteo.net> Reviewed-on: https://review.coreboot.org/c/coreboot/+/60509 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: HAOUAS Elyes <ehaouas@noos.fr>
This commit is contained in:
@@ -100,7 +100,7 @@
|
|||||||
/* Divide round closest */
|
/* Divide round closest */
|
||||||
Method (DRCL, 2)
|
Method (DRCL, 2)
|
||||||
{
|
{
|
||||||
Return (Divide (Add (Arg0, Divide (Arg1, 2)), Arg1))
|
Return (Divide (Arg0 + Divide (Arg1, 2), Arg1))
|
||||||
}
|
}
|
||||||
|
|
||||||
Method (XBCM, 1, NotSerialized)
|
Method (XBCM, 1, NotSerialized)
|
||||||
@@ -124,7 +124,7 @@
|
|||||||
While (LLess (Local1, SizeOf (BRIG) - 1)) {
|
While (LLess (Local1, SizeOf (BRIG) - 1)) {
|
||||||
/* Local[23]: adjacent values in BRIG */
|
/* Local[23]: adjacent values in BRIG */
|
||||||
Store (DeRefOf (BRIG[Local1]), Local2)
|
Store (DeRefOf (BRIG[Local1]), Local2)
|
||||||
Store (DeRefOf (BRIG[Add (Local1, 1)]), Local3)
|
Store (DeRefOf (BRIG[Local1 + 1]), Local3)
|
||||||
|
|
||||||
If (LLess (Local0, Local3)) {
|
If (LLess (Local0, Local3)) {
|
||||||
If (LOr (LLess (Local0, Local2), LLess (Local0 - Local2, Local3 - Local0))) {
|
If (LOr (LLess (Local0, Local2), LLess (Local0 - Local2, Local3 - Local0))) {
|
||||||
|
Reference in New Issue
Block a user