diff options
| author | Yann Gautier <yann.gautier@st.com> | 2026-05-22 16:09:34 +0200 |
|---|---|---|
| committer | Yann Gautier <yann.gautier@st.com> | 2026-06-29 15:31:56 +0200 |
| commit | f3fa63baf64d7e8097df22f6b69d8c7b2e572c24 (patch) | |
| tree | 0c783c07750532083fefb7e7b1f72fa4a1f57676 | |
| parent | a33a522d6d7a48f0eb5165e8847063ec4d6b9229 (diff) | |
| download | arm-trusted-firmware-f3fa63baf64d7e8097df22f6b69d8c7b2e572c24.tar.gz arm-trusted-firmware-f3fa63baf64d7e8097df22f6b69d8c7b2e572c24.zip | |
fix(st-regulator): remove const for driver_data
The driver_data will be used to store regul_handle_s data, but bypass_mv
is not const and will be updated at driver init. The driver_data should
then not be const.
The issue was seen when trying to correct issues seen with the GCC flag:
-Wdiscarded-qualifiers.
Change-Id: I19f42c6812bf6ed604ceca0a196e3103bec58dd2
Signed-off-by: Yann Gautier <yann.gautier@st.com>
| -rw-r--r-- | include/drivers/st/regulator.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/drivers/st/regulator.h b/include/drivers/st/regulator.h index bf583e224..d07f84912 100644 --- a/include/drivers/st/regulator.h +++ b/include/drivers/st/regulator.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021, STMicroelectronics - All Rights Reserved + * Copyright (c) 2021-2026, STMicroelectronics - All Rights Reserved * * SPDX-License-Identifier: BSD-3-Clause */ @@ -68,7 +68,7 @@ int regulator_set_flag(struct rdev *rdev, uint16_t flag); struct regul_description { const char *node_name; const struct regul_ops *ops; - const void *driver_data; + void *driver_data; const char *supply_name; const uint32_t enable_ramp_delay; }; |
