summaryrefslogtreecommitdiff
path: root/src/acpi/acpigen.c
diff options
context:
space:
mode:
authorDuncan Laurie <dlaurie@google.com>2020-10-09 17:50:25 +0000
committerDuncan Laurie <dlaurie@chromium.org>2020-10-21 22:24:27 +0000
commit3502960e50c5380af875c7d43e51040a8ed25623 (patch)
tree61aff46b5e1d7e1271f9e76361a28994b279578b /src/acpi/acpigen.c
parent30c3f91d33a8308db80a730c6df27553d8fdb072 (diff)
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>
Diffstat (limited to 'src/acpi/acpigen.c')
-rw-r--r--src/acpi/acpigen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/acpi/acpigen.c b/src/acpi/acpigen.c
index e2fe2cfaa4..7b7258469f 100644
--- a/src/acpi/acpigen.c
+++ b/src/acpi/acpigen.c
@@ -408,7 +408,7 @@ void acpigen_write_processor_cnot(const unsigned int number_of_cores)
* 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);