acpi/acpigen: Constify CST functions' pointers

The `acpigen_write_CST_package` and `acpigen_write_CST_package_entry`
functions don't modify the provided C-state information. So, make the
pointer parameters read-only to enforce this. Also constify arguments
where possible.

Change-Id: I9e18d82ee6c16e4435b8fad6d467e58c33194cf4
Signed-off-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/58391
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Raul Rangel <rrangel@chromium.org>
Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
This commit is contained in:
Angel Pons
2021-10-17 12:59:43 +02:00
committed by Felix Held
parent 14643b33b0
commit d2794cea12
6 changed files with 8 additions and 8 deletions

View File

@ -289,7 +289,7 @@ void generate_cpu_entries(const struct device *device)
.addrl = PS_STS_REG,
};
acpi_cstate_t cstate_info[] = {
const acpi_cstate_t cstate_info[] = {
[0] = {
.ctype = 1,
.latency = 1,