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:
Yann Gautier 2022-02-09 17:35:45 +01:00
parent af68314ddc
commit 57e6018305
1 changed files with 1 additions and 1 deletions

View File

@ -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,