diff options
author | Sean Rhodes <sean@starlabs.systems> | 2022-12-15 11:48:58 +0000 |
---|---|---|
committer | Martin L Roth <gaumless@gmail.com> | 2022-12-17 20:23:55 +0000 |
commit | e56a812a6ad91d4109dc380258c787c85a7b082a (patch) | |
tree | e0f00bfbd6b9a57b8752d213c097af861855d545 /src/soc/intel/common | |
parent | d14461f40341ede21fd5f2a5bb3e5a27d17f9294 (diff) |
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 <sean@starlabs.systems>
Change-Id: I7d3db0bc119cd9b9b276abd68754e750e06a788c
Reviewed-on: https://review.coreboot.org/c/coreboot/+/70774
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Diffstat (limited to 'src/soc/intel/common')
-rw-r--r-- | src/soc/intel/common/block/chip/chip.c | 2 | ||||
-rw-r--r-- | 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 <soc/soc_chip.h> -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 */ |