diff options
| -rw-r--r-- | drivers/regulator/mt6397-regulator.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/regulator/mt6397-regulator.c b/drivers/regulator/mt6397-regulator.c index 17a5b6c2d6a9..1c45abb94409 100644 --- a/drivers/regulator/mt6397-regulator.c +++ b/drivers/regulator/mt6397-regulator.c | |||
| @@ -160,7 +160,7 @@ static int mt6397_get_status(struct regulator_dev *rdev) | |||
| 160 | return (regval & info->qi) ? REGULATOR_STATUS_ON : REGULATOR_STATUS_OFF; | 160 | return (regval & info->qi) ? REGULATOR_STATUS_ON : REGULATOR_STATUS_OFF; |
| 161 | } | 161 | } |
| 162 | 162 | ||
| 163 | static struct regulator_ops mt6397_volt_range_ops = { | 163 | static const struct regulator_ops mt6397_volt_range_ops = { |
| 164 | .list_voltage = regulator_list_voltage_linear_range, | 164 | .list_voltage = regulator_list_voltage_linear_range, |
| 165 | .map_voltage = regulator_map_voltage_linear_range, | 165 | .map_voltage = regulator_map_voltage_linear_range, |
| 166 | .set_voltage_sel = regulator_set_voltage_sel_regmap, | 166 | .set_voltage_sel = regulator_set_voltage_sel_regmap, |
| @@ -172,7 +172,7 @@ static struct regulator_ops mt6397_volt_range_ops = { | |||
| 172 | .get_status = mt6397_get_status, | 172 | .get_status = mt6397_get_status, |
| 173 | }; | 173 | }; |
| 174 | 174 | ||
| 175 | static struct regulator_ops mt6397_volt_table_ops = { | 175 | static const struct regulator_ops mt6397_volt_table_ops = { |
| 176 | .list_voltage = regulator_list_voltage_table, | 176 | .list_voltage = regulator_list_voltage_table, |
| 177 | .map_voltage = regulator_map_voltage_iterate, | 177 | .map_voltage = regulator_map_voltage_iterate, |
| 178 | .set_voltage_sel = regulator_set_voltage_sel_regmap, | 178 | .set_voltage_sel = regulator_set_voltage_sel_regmap, |
| @@ -184,7 +184,7 @@ static struct regulator_ops mt6397_volt_table_ops = { | |||
| 184 | .get_status = mt6397_get_status, | 184 | .get_status = mt6397_get_status, |
| 185 | }; | 185 | }; |
| 186 | 186 | ||
| 187 | static struct regulator_ops mt6397_volt_fixed_ops = { | 187 | static const struct regulator_ops mt6397_volt_fixed_ops = { |
| 188 | .list_voltage = regulator_list_voltage_linear, | 188 | .list_voltage = regulator_list_voltage_linear, |
| 189 | .enable = regulator_enable_regmap, | 189 | .enable = regulator_enable_regmap, |
| 190 | .disable = regulator_disable_regmap, | 190 | .disable = regulator_disable_regmap, |
