From f451bfb1a55192cd5e69a65e91ab5c8db6a36a0d Mon Sep 17 00:00:00 2001 From: Elyes Haouas Date: Sun, 25 Dec 2022 06:29:39 +0100 Subject: soc/intel/baytrail/acpi: Replace Index(a, b) with ASL 2.0 syntax Change-Id: Iab611cda1083da4378a6e509d11ea26bdbb45edd Signed-off-by: Elyes Haouas Reviewed-on: https://review.coreboot.org/c/coreboot/+/71503 Reviewed-by: Felix Singer Tested-by: build bot (Jenkins) --- src/soc/intel/baytrail/acpi/dptf/charger.asl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/soc/intel/baytrail/acpi/dptf/charger.asl') diff --git a/src/soc/intel/baytrail/acpi/dptf/charger.asl b/src/soc/intel/baytrail/acpi/dptf/charger.asl index f8eac66e32..1b0bd783e1 100644 --- a/src/soc/intel/baytrail/acpi/dptf/charger.asl +++ b/src/soc/intel/baytrail/acpi/dptf/charger.asl @@ -45,8 +45,7 @@ Device (TCHG) Method (SPPC, 1) { /* Retrieve Control (index 4) for specified PPSS level */ - Local0 = DeRefOf (Index (DeRefOf (Index - (\_SB.CHPS, ToInteger (Arg0))), 4)) + Local0 = DerefOf (DerefOf (\_SB.CHPS[ToInteger (Arg0)])[4]) /* Pass Control value to EC to limit charging */ \_SB.PCI0.LPCB.EC0.CHGS (Local0) -- cgit v1.2.3