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 <dlaurie@google.com>
Change-Id: Id8cdfb4b3450a5ab2164ab048497324175b32269
Reviewed-on: https://review.coreboot.org/c/coreboot/+/46258
Reviewed-by: Furquan Shaikh <furquan@google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
diff --git a/src/acpi/acpigen.c b/src/acpi/acpigen.c
index e2fe2cf..7b72584 100644
--- a/src/acpi/acpigen.c
+++ b/src/acpi/acpigen.c
@@ -408,7 +408,7 @@
  * len is region length.
  * OperationRegion(regionname, regionspace, regionoffset, regionlength)
  */
-void acpigen_write_opregion(struct opregion *opreg)
+void acpigen_write_opregion(const struct opregion *opreg)
 {
 	/* OpregionOp */
 	acpigen_emit_ext_op(OPREGION_OP);