summaryrefslogtreecommitdiff
path: root/drivers/st
diff options
context:
space:
mode:
authorYann Gautier <yann.gautier@st.com>2022-02-09 17:35:45 +0100
committerYann Gautier <yann.gautier@st.com>2022-03-08 13:18:09 +0100
commit57e6018305a97f4e3627d16d8b1886419f274b4a (patch)
treee7f8ac1f216b366065a1b574357b591807b1ea11 /drivers/st
parentaf68314ddcec11d71153ad52f3532cb4ac8520cd (diff)
downloadarm-trusted-firmware-57e6018305a97f4e3627d16d8b1886419f274b4a.tar.gz
fix(st-pmic): add static const to pmic_ops
The static was found by sparse tool: drivers/st/pmic/stm32mp_pmic.c:456:18: warning: symbol 'pmic_ops' was not declared. Should it be static? The const was also missing. Signed-off-by: Yann Gautier <yann.gautier@st.com> Change-Id: Ibb5cfaf67ac980bf0af27712a95dbef05b617c25
Diffstat (limited to 'drivers/st')
-rw-r--r--drivers/st/pmic/stm32mp_pmic.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/st/pmic/stm32mp_pmic.c b/drivers/st/pmic/stm32mp_pmic.c
index 013966178..7030cf5ce 100644
--- a/drivers/st/pmic/stm32mp_pmic.c
+++ b/drivers/st/pmic/stm32mp_pmic.c
@@ -403,7 +403,7 @@ static int pmic_set_flag(const struct regul_description *desc, uint16_t flag)
}
}
-struct regul_ops pmic_ops = {
+static const struct regul_ops pmic_ops = {
.set_state = pmic_set_state,
.get_state = pmic_get_state,
.set_voltage = pmic_set_voltage,