mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-17 01:54:22 +00:00
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
This commit is contained in:
parent
af68314ddc
commit
57e6018305
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Reference in a new issue