summaryrefslogtreecommitdiff
path: root/src/ec/hp/kbc1126/acpi
diff options
context:
space:
mode:
authorFelix Singer <felixsinger@posteo.net>2021-12-29 14:10:38 +0100
committerFelix Singer <felixsinger@posteo.net>2021-12-30 14:30:15 +0000
commitc93781f96ec5ef615e91ea42d5e0b827718fc6eb (patch)
treec40ad8289555a2b3c807aa4b21c1ee848dced67a /src/ec/hp/kbc1126/acpi
parent38ac171dddce2147f52dc55cbdc9931f94e55ce5 (diff)
ec/hp/kbc1126/acpi: Use ASL 2.0 syntax to access arrays
Replace Index(FOO, 1337) with FOO[1337]. Change-Id: Ie499f27acd13569095749e095d7898890da6985d Signed-off-by: Felix Singer <felixsinger@posteo.net> Reviewed-on: https://review.coreboot.org/c/coreboot/+/60458 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: HAOUAS Elyes <ehaouas@noos.fr>
Diffstat (limited to 'src/ec/hp/kbc1126/acpi')
-rw-r--r--src/ec/hp/kbc1126/acpi/battery.asl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ec/hp/kbc1126/acpi/battery.asl b/src/ec/hp/kbc1126/acpi/battery.asl
index 003e58ba11..5a6e5dcc64 100644
--- a/src/ec/hp/kbc1126/acpi/battery.asl
+++ b/src/ec/hp/kbc1126/acpi/battery.asl
@@ -230,7 +230,7 @@ Method (\ISTR, 2, Serialized)
{
Local1--
Divide (Local0, 10, Local2, Local0)
- Add (Local2, 48, Index (NUMB, Local1))
+ Add (Local2, 48, NUMB[Local1])
}
ToString (NUMB, Arg1, Local3)
Return (Local3)