]> git.baikalelectronics.ru Git - arm-tf.git/commit
fix(stm32mp1): add const for strings in stm32mp_get_soc_name()
authorYann Gautier <yann.gautier@st.com>
Thu, 24 Nov 2022 18:02:23 +0000 (19:02 +0100)
committerYann Gautier <yann.gautier@st.com>
Wed, 7 Dec 2022 13:20:01 +0000 (14:20 +0100)
commitd7f5bed90eaacee0a223bcf23438dfb76dee08e6
tree5544c14f8eb93f7238ff6a135859edecf15f83b5
parent45d2d495e77c9c8f3e80774e48a80e4882c8ac0d
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
plat/st/stm32mp1/stm32mp1_private.c