From e56a812a6ad91d4109dc380258c787c85a7b082a Mon Sep 17 00:00:00 2001 From: Sean Rhodes Date: Thu, 15 Dec 2022 11:48:58 +0000 Subject: [PATCH] soc/intel/common: Remove read-only from chip_get_common_soc_structure Remove the `const` property from chip_get_common_soc_structure so that the returned values can be overwritten as required. Cc: th3fanbus@gmail.com Signed-off-by: Sean Rhodes Change-Id: I7d3db0bc119cd9b9b276abd68754e750e06a788c Reviewed-on: https://review.coreboot.org/c/coreboot/+/70774 Tested-by: build bot (Jenkins) Reviewed-by: Angel Pons --- src/soc/intel/common/block/chip/chip.c | 2 +- src/soc/intel/common/block/include/intelblocks/cfg.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/soc/intel/common/block/chip/chip.c b/src/soc/intel/common/block/chip/chip.c index f52d242357..29d9f50874 100644 --- a/src/soc/intel/common/block/chip/chip.c +++ b/src/soc/intel/common/block/chip/chip.c @@ -2,7 +2,7 @@ #include -const struct soc_intel_common_config *chip_get_common_soc_structure(void) +struct soc_intel_common_config *chip_get_common_soc_structure(void) { return &((config_t *)config_of_soc())->common_soc_config; } diff --git a/src/soc/intel/common/block/include/intelblocks/cfg.h b/src/soc/intel/common/block/include/intelblocks/cfg.h index 131d70d71c..8563520961 100644 --- a/src/soc/intel/common/block/include/intelblocks/cfg.h +++ b/src/soc/intel/common/block/include/intelblocks/cfg.h @@ -29,6 +29,6 @@ struct soc_intel_common_config { }; /* This function to retrieve soc config structure required by common code */ -const struct soc_intel_common_config *chip_get_common_soc_structure(void); +struct soc_intel_common_config *chip_get_common_soc_structure(void); #endif /* SOC_INTEL_COMMON_BLOCK_CFG_H */