From e9f10ff38bf95000115d7c0a45cb0e6323cc61c8 Mon Sep 17 00:00:00 2001 From: Angel Pons Date: Sun, 17 Oct 2021 13:28:23 +0200 Subject: soc/intel: Constify `soc_get_cstate_map()` Return a read-only pointer from the `soc_get_cstate_map()` function. Also, constify the actual data where applicable. Change-Id: I7d46f1e373971c789eaf1eb582e9aa2d3f661785 Signed-off-by: Angel Pons Reviewed-on: https://review.coreboot.org/c/coreboot/+/58392 Tested-by: build bot (Jenkins) Reviewed-by: Raul Rangel --- src/soc/intel/icelake/acpi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/soc/intel/icelake') diff --git a/src/soc/intel/icelake/acpi.c b/src/soc/intel/icelake/acpi.c index f822e8323b..d11f3ca8ff 100644 --- a/src/soc/intel/icelake/acpi.c +++ b/src/soc/intel/icelake/acpi.c @@ -107,7 +107,7 @@ static int cstate_set_s0ix[] = { C_STATE_C10 }; -acpi_cstate_t *soc_get_cstate_map(size_t *entries) +const acpi_cstate_t *soc_get_cstate_map(size_t *entries) { static acpi_cstate_t map[MAX(ARRAY_SIZE(cstate_set_s0ix), ARRAY_SIZE(cstate_set_non_s0ix))]; -- cgit v1.2.3