summaryrefslogtreecommitdiff
path: root/arch/x86/cpu/apollolake
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2020-12-23 18:11:26 +0300
committerSimon Glass <sjg@chromium.org>2021-01-05 22:24:41 +0300
commit52d2e9c142c0079bba51011bb95301c986ff11bb (patch)
tree0af941009f7785ed5f7a942c18f72ddf3be7aad7 /arch/x86/cpu/apollolake
parent7d637c122d772e472a211f6aa3f33cbe3c3e243c (diff)
downloadu-boot-52d2e9c142c0079bba51011bb95301c986ff11bb.tar.xz
x86: apl: Use const for driver operations
Update these declarations to const to ensure that the data ends up in the rodata section. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch/x86/cpu/apollolake')
-rw-r--r--arch/x86/cpu/apollolake/pmc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/cpu/apollolake/pmc.c b/arch/x86/cpu/apollolake/pmc.c
index 290b2cb3e7..c40065ab8c 100644
--- a/arch/x86/cpu/apollolake/pmc.c
+++ b/arch/x86/cpu/apollolake/pmc.c
@@ -205,7 +205,7 @@ static int apl_pmc_probe(struct udevice *dev)
return 0;
}
-static struct acpi_pmc_ops apl_pmc_ops = {
+static const struct acpi_pmc_ops apl_pmc_ops = {
.init = apl_pmc_fill_power_state,
.prev_sleep_state = apl_prev_sleep_state,
.disable_tco = apl_disable_tco,