]> git.baikalelectronics.ru Git - arm-tf.git/commit
fix(st): use indices when counting GPIOs in DT
authorYann Gautier <yann.gautier@st.com>
Mon, 21 Nov 2022 10:45:04 +0000 (11:45 +0100)
committerYann Gautier <yann.gautier@st.com>
Wed, 7 Dec 2022 13:20:01 +0000 (14:20 +0100)
commite7d75448b9e46dee22fe23b37c28a522b9ec3a6c
tree5145f7ea8f7e90ecb46c7c913d7bf471347cbd9f
parent9c1aa1253c9c77487b73d46a89941e81e80864eb
fix(st): use indices when counting GPIOs in DT

Fix MISRA C2012-18.4:
The +, -, += and -= operators should not be applied to an expression
of pointer type.
While at it, avoid computing twice the same value, by removing the
initial value computation outside the loop.

Signed-off-by: Yann Gautier <yann.gautier@st.com>
Change-Id: Iabfe587bf72535541c94bfa341de10148aa58030
plat/st/common/stm32mp_dt.c