summaryrefslogtreecommitdiff
path: root/src/arch/x86/acpigen.c
diff options
context:
space:
mode:
authorFurquan Shaikh <furquan@google.com>2020-04-27 23:18:12 -0700
committerFurquan Shaikh <furquan@google.com>2020-04-29 08:44:00 +0000
commitf9392990d5f8d3c1b7d6f8531c62b5a6b2f3545c (patch)
tree43fdee831de8967026f87e0dc0725aea66cc9bed /src/arch/x86/acpigen.c
parent2c213d35b0cdcc6def4431c736c5bc64abe160fb (diff)
downloadcoreboot-f9392990d5f8d3c1b7d6f8531c62b5a6b2f3545c.tar.xz
arch/x86/acpigen: Constify fieldlist parameter to acpigen_write_field
acpigen_write_field() does not need to modify the fieldlist parameter. Thus, this change makes this parameter as const. Change-Id: I94688913cee8948f42ae5e184f2d24264876648d Signed-off-by: Furquan Shaikh <furquan@google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/40784 Reviewed-by: Aaron Durbin <adurbin@chromium.org> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/arch/x86/acpigen.c')
-rw-r--r--src/arch/x86/acpigen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/arch/x86/acpigen.c b/src/arch/x86/acpigen.c
index 82654e18dd..34de2bab18 100644
--- a/src/arch/x86/acpigen.c
+++ b/src/arch/x86/acpigen.c
@@ -514,7 +514,7 @@ static void acpigen_write_field_name(const char *name, uint32_t size)
* PMCS, 2
* }
*/
-void acpigen_write_field(const char *name, struct fieldlist *l, size_t count,
+void acpigen_write_field(const char *name, const struct fieldlist *l, size_t count,
uint8_t flags)
{
uint16_t i;