mb/51nb/x210/acpi: Use ASL 2.0 syntax to access arrays

Replace Index(FOO, 1337) with FOO[1337].

Change-Id: I5692d1be5a94d259bbed987a43ec17ad1c1f915c
Signed-off-by: Felix Singer <felixsinger@posteo.net>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/60454
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-29 13:39:20 +01:00
parent bb665ed635
commit 2bdffaa272
1 changed files with 9 additions and 9 deletions

View File

@ -37,19 +37,19 @@ Device (BAT)
Method (_BIF, 0, Serialized)
{
/* Design Capacity */
Store (DGCP * 10000 / DGVO, Index (PBIF, 1))
Store (DGCP * 10000 / DGVO, PBIF[1])
/* Last Full Charge Capacity */
Store (FLCP * 10000 / DGVO, Index (PBIF, 2))
Store (FLCP * 10000 / DGVO, PBIF[2])
/* Design Voltage */
Store (DGVO, Index (PBIF, 4))
Store (DGVO, PBIF[4])
/* Design Capacity of Warning */
Store (BDW * 10000 / DGVO, Index (PBIF, 5))
Store (BDW * 10000 / DGVO, PBIF[5])
/* Design Capacity of Low */
Store (BDL, Index (PBIF, 6))
Store (BDL, PBIF[6])
Return (PBIF)
}
@ -70,22 +70,22 @@ Device (BAT)
* bit 1 = charging
* bit 2 = critical level
*/
Store (BSTS, Index (PBST, 0))
Store (BSTS, PBST[0])
/*
* 1: BATTERY PRESENT RATE
*/
Store (BPR, Index (PBST, 1))
Store (BPR, PBST[1])
/*
* 2: BATTERY REMAINING CAPACITY
*/
Store (BRC * 10000 / DGVO, Index (PBST, 2))
Store (BRC * 10000 / DGVO, PBST[2])
/*
* 3: BATTERY PRESENT VOLTAGE
*/
Store (BPV, Index (PBST, 3))
Store (BPV, PBST[3])
Return (PBST)
}