From 3502960e50c5380af875c7d43e51040a8ed25623 Mon Sep 17 00:00:00 2001 From: Duncan Laurie Date: Fri, 9 Oct 2020 17:50:25 +0000 Subject: acpigen: Make acpigen_write_opregion() argument const This structure is not modified so it can be made const and allow the calling function to also declare it as a const structure. Signed-off-by: Duncan Laurie Change-Id: Id8cdfb4b3450a5ab2164ab048497324175b32269 Reviewed-on: https://review.coreboot.org/c/coreboot/+/46258 Reviewed-by: Furquan Shaikh Tested-by: build bot (Jenkins) --- src/include/acpi/acpigen.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/include/acpi') diff --git a/src/include/acpi/acpigen.h b/src/include/acpi/acpigen.h index e0d95cdbfe00..d06d20c8e7d3 100644 --- a/src/include/acpi/acpigen.h +++ b/src/include/acpi/acpigen.h @@ -429,7 +429,7 @@ void acpigen_write_rom(void *bios, const size_t length); * This function takes input region name, region space, region offset & region * length. */ -void acpigen_write_opregion(struct opregion *opreg); +void acpigen_write_opregion(const struct opregion *opreg); /* * Generate ACPI AML code for Mutex * This function takes mutex name and initial value. -- cgit v1.2.3