summaryrefslogtreecommitdiff
path: root/drivers/regulator/mt6358-regulator.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/regulator/mt6358-regulator.c')
-rw-r--r--drivers/regulator/mt6358-regulator.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/regulator/mt6358-regulator.c b/drivers/regulator/mt6358-regulator.c
index e4745f616cea..2604f674be49 100644
--- a/drivers/regulator/mt6358-regulator.c
+++ b/drivers/regulator/mt6358-regulator.c
@@ -31,7 +31,7 @@ struct mt6358_regulator_info {
u32 modeset_mask;
};
-#define to_regulator_info(x) container_of((x), struct mt6358_regulator_info, desc)
+#define to_regulator_info(x) container_of_const((x), struct mt6358_regulator_info, desc)
#define MT6358_BUCK(match, vreg, supply, min, max, step, \
vosel_mask, _da_vsel_reg, _da_vsel_mask, \