summaryrefslogtreecommitdiff
path: root/src/soc/intel/elkhartlake
diff options
context:
space:
mode:
authorKyösti Mälkki <kyosti.malkki@gmail.com>2021-01-22 07:52:43 +0200
committerFelix Held <felix-coreboot@felixheld.de>2021-01-23 20:18:11 +0000
commit6b43055b7a51bd3e27578bbb544aa638228f6eaf (patch)
treee8e0ea4911aa67d7d6cde2a7fdcb86d5beaf6658 /src/soc/intel/elkhartlake
parent0052d051011825bbd43f625d208de3f186eec512 (diff)
ELOG: Add const qualifier for chipset_power_state
It is never allowed for ELOG to modify the state. Change-Id: Ie24df3969a3744f27b23997471666e2490e24b84 Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/49820 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Frans Hendriks <fhendriks@eltan.com> Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Diffstat (limited to 'src/soc/intel/elkhartlake')
-rw-r--r--src/soc/intel/elkhartlake/elog.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/soc/intel/elkhartlake/elog.c b/src/soc/intel/elkhartlake/elog.c
index c88efc81bc..14e463c961 100644
--- a/src/soc/intel/elkhartlake/elog.c
+++ b/src/soc/intel/elkhartlake/elog.c
@@ -20,7 +20,7 @@ static void pch_log_gpio_gpe(u32 gpe0_sts, u32 gpe0_en, int start)
}
}
-static void pch_log_wake_source(struct chipset_power_state *ps)
+static void pch_log_wake_source(const struct chipset_power_state *ps)
{
/* Power Button */
if (ps->pm1_sts & PWRBTN_STS)
@@ -54,7 +54,7 @@ static void pch_log_wake_source(struct chipset_power_state *ps)
pch_log_gpio_gpe(ps->gpe0_sts[GPE_STD], ps->gpe0_en[GPE_STD], 96);
}
-static void pch_log_power_and_resets(struct chipset_power_state *ps)
+static void pch_log_power_and_resets(const struct chipset_power_state *ps)
{
/* Thermal Trip */
if (ps->gblrst_cause[0] & GBLRST_CAUSE0_THERMTRIP)