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>
This commit is contained in:
parent
0052d05101
commit
6b43055b7a
|
@ -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)
|
||||
|
|
|
@ -23,7 +23,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)
|
||||
{
|
||||
const struct xhci_wake_info xhci_wake_info[] = {
|
||||
{ PCH_DEVFN_XHCI, ELOG_WAKE_SOURCE_PME_XHCI },
|
||||
|
@ -65,7 +65,7 @@ static void pch_log_wake_source(struct chipset_power_state *ps)
|
|||
pch_log_gpio_gpe(ps->gpe0_sts[GPE0_D], ps->gpe0_en[GPE0_D], 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)
|
||||
{
|
||||
/* RTC Reset */
|
||||
if (ps->gen_pmcon1 & RPS)
|
||||
|
|
|
@ -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)
|
||||
|
@ -56,7 +56,7 @@ static void pch_log_wake_source(struct chipset_power_state *ps)
|
|||
pch_log_gpio_gpe(ps->gpe0_sts[GPE_94_64], ps->gpe0_en[GPE_94_64], 64);
|
||||
}
|
||||
|
||||
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 Status */
|
||||
if (ps->gen_pmcon2 & THERMTRIP_STS)
|
||||
|
|
|
@ -91,7 +91,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)
|
||||
|
@ -125,7 +125,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)
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -100,7 +100,7 @@ static void pch_log_pme_internal_wake_source(void)
|
|||
elog_add_event_wake(ELOG_WAKE_SOURCE_PME_INTERNAL, 0);
|
||||
}
|
||||
|
||||
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)
|
||||
|
@ -134,7 +134,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)
|
||||
|
|
|
@ -131,7 +131,7 @@ static void pch_log_rp_wake_source(void)
|
|||
}
|
||||
}
|
||||
|
||||
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)
|
||||
|
@ -173,7 +173,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)
|
||||
{
|
||||
bool deep_sx;
|
||||
|
||||
|
|
|
@ -126,7 +126,7 @@ static void pch_log_pme_internal_wake_source(void)
|
|||
elog_add_event_wake(ELOG_WAKE_SOURCE_PME_INTERNAL, 0);
|
||||
}
|
||||
|
||||
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)
|
||||
|
@ -160,7 +160,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)
|
||||
|
|
Loading…
Reference in New Issue