@@ -41,7 +41,7 @@ struct mt6358_regulator_info {
4141 .name = #vreg, \
4242 .supply_name = supply, \
4343 .of_match = of_match_ptr(match), \
44- .ops = &mt6358_volt_range_ops , \
44+ .ops = &mt6358_buck_ops , \
4545 .type = REGULATOR_VOLTAGE, \
4646 .id = MT6358_ID_##vreg, \
4747 .owner = THIS_MODULE, \
@@ -142,7 +142,7 @@ struct mt6358_regulator_info {
142142 .name = #vreg, \
143143 .supply_name = "vsys-" match, \
144144 .of_match = of_match_ptr(match), \
145- .ops = &mt6358_volt_range_ops , \
145+ .ops = &mt6358_buck_ops , \
146146 .type = REGULATOR_VOLTAGE, \
147147 .id = MT6366_ID_##vreg, \
148148 .owner = THIS_MODULE, \
@@ -449,7 +449,7 @@ static unsigned int mt6358_regulator_get_mode(struct regulator_dev *rdev)
449449 }
450450}
451451
452- static const struct regulator_ops mt6358_volt_range_ops = {
452+ static const struct regulator_ops mt6358_buck_ops = {
453453 .list_voltage = regulator_list_voltage_linear ,
454454 .map_voltage = regulator_map_voltage_linear ,
455455 .set_voltage_sel = regulator_set_voltage_sel_regmap ,
@@ -463,6 +463,18 @@ static const struct regulator_ops mt6358_volt_range_ops = {
463463 .get_mode = mt6358_regulator_get_mode ,
464464};
465465
466+ static const struct regulator_ops mt6358_volt_range_ops = {
467+ .list_voltage = regulator_list_voltage_linear ,
468+ .map_voltage = regulator_map_voltage_linear ,
469+ .set_voltage_sel = regulator_set_voltage_sel_regmap ,
470+ .get_voltage_sel = mt6358_get_buck_voltage_sel ,
471+ .set_voltage_time_sel = regulator_set_voltage_time_sel ,
472+ .enable = regulator_enable_regmap ,
473+ .disable = regulator_disable_regmap ,
474+ .is_enabled = regulator_is_enabled_regmap ,
475+ .get_status = mt6358_get_status ,
476+ };
477+
466478static const struct regulator_ops mt6358_volt_table_ops = {
467479 .list_voltage = regulator_list_voltage_pickable_linear_range ,
468480 .map_voltage = regulator_map_voltage_pickable_linear_range ,
0 commit comments