arch/x86/acpi: Replace Add(a,b,c) with ASL 2.0 syntax

Replace `Add (a, b, c)` with `c = a + b`.

Change-Id: I10a94406aa7e66eed4fec22f56b7a8802252e781
Signed-off-by: Felix Singer <felixsinger@posteo.net>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/60495
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: HAOUAS Elyes <ehaouas@noos.fr>
This commit is contained in:
Felix Singer 2021-12-30 02:01:00 +01:00
parent 1bdac6a8e7
commit abff1a51c4
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@ Method(SLEN, 1)
Method(S2BF, 1, Serialized)
{
Add(SLEN(Arg0), One, Local0)
Local0 = SLEN(Arg0) + 1
Name(BUFF, Buffer(Local0) {})
Store(Arg0, BUFF)
Return(BUFF)