soc/intel/alderlake: Fix function pointer type

const void is not a proper return type for a function. It's the
function pointer themselves that need to be const.

This fixes building with clang.

Change-Id: I99888ab9d9d80f1d6edb33b9f4a3f556f211a6e2
Signed-off-by: Arthur Heymans <arthur@aheymans.xyz>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/62178
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
This commit is contained in:
Arthur Heymans 2022-02-18 13:22:25 +01:00 committed by Felix Held
parent b53a55930e
commit 02967e6113
2 changed files with 2 additions and 2 deletions

View File

@ -799,7 +799,7 @@ static void soc_silicon_init_params(FSP_S_CONFIG *s_cfg,
/* Override settings per board if required. */ /* Override settings per board if required. */
mainboard_update_soc_chip_config(config); mainboard_update_soc_chip_config(config);
const void (*fill_fsps_params[])(FSP_S_CONFIG *s_cfg, void (*const fill_fsps_params[])(FSP_S_CONFIG *s_cfg,
const struct soc_intel_alderlake_config *config) = { const struct soc_intel_alderlake_config *config) = {
fill_fsps_lpss_params, fill_fsps_lpss_params,
fill_fsps_cpu_params, fill_fsps_cpu_params,

View File

@ -330,7 +330,7 @@ static void fill_fspm_trace_params(FSP_M_CONFIG *m_cfg,
static void soc_memory_init_params(FSP_M_CONFIG *m_cfg, static void soc_memory_init_params(FSP_M_CONFIG *m_cfg,
const struct soc_intel_alderlake_config *config) const struct soc_intel_alderlake_config *config)
{ {
const void (*fill_fspm_params[])(FSP_M_CONFIG *m_cfg, void (*const fill_fspm_params[])(FSP_M_CONFIG *m_cfg,
const struct soc_intel_alderlake_config *config) = { const struct soc_intel_alderlake_config *config) = {
fill_fspm_igd_params, fill_fspm_igd_params,
fill_fspm_mrc_params, fill_fspm_mrc_params,