mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-24 13:55:56 +00:00
fix(stm32mp1): add const for strings in stm32mp_get_soc_name()
This corrects MISRA C2012-7.4: A string literal shall not be assigned to an object unless the object's type is "pointer to const-qualified char". Signed-off-by: Yann Gautier <yann.gautier@st.com> Change-Id: I0c9f483dce9abd32647d5f5e2df72047cdd376dd
This commit is contained in:
parent
45d2d495e7
commit
d7f5bed90e
1 changed files with 1 additions and 1 deletions
|
@ -378,7 +378,7 @@ static uint32_t get_cpu_package(void)
|
|||
|
||||
void stm32mp_get_soc_name(char name[STM32_SOC_NAME_SIZE])
|
||||
{
|
||||
char *cpu_s, *cpu_r, *pkg;
|
||||
const char *cpu_s, *cpu_r, *pkg;
|
||||
|
||||
/* MPUs Part Numbers */
|
||||
switch (get_part_number()) {
|
||||
|
|
Loading…
Add table
Reference in a new issue