Skip to contentSkip to conversation

regulator: pf8x00: Use regulator_map_voltage_ascend for pf8x00_buck7_ops

PATCH In review Axel Lin 4 participants 4 messages Feb 16, 2021 – Mar 2, 2021

Subsystems (2)
lore
Share & tools
lore

Axel Lin

author
#0 lore raw

PATCH 1/1 regulator: pf8x00: Use regulator_map_voltage_ascend for pf8x00_buck7_ops

The voltages in pf8x00_sw7_voltages are in ascendant order, so use regulator_map_voltage_ascend.

---
 drivers/regulator/pf8x00-regulator.c | 1 +
 1 file changed, 1 insertion(+)
drivers/regulator/pf8x00-regulator.c +1 -0
index 9b28bd63208d..5d319fb81288 100644
@@ -359,6 +359,7 @@ static const struct regulator_ops pf8x00_buck7_ops = {
 	.disable = regulator_disable_regmap,
 	.is_enabled = regulator_is_enabled_regmap,
 	.list_voltage = regulator_list_voltage_table,
+	.map_voltage = regulator_map_voltage_ascend,
 	.set_voltage_sel = regulator_set_voltage_sel_regmap,
 	.get_voltage_sel = regulator_get_voltage_sel_regmap,
 	.get_current_limit = regulator_get_current_limit_regmap,
Signature · 1 line
2.25.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 22 lines · Axel Lin

The voltages in pf8x00_sw7_voltages are in ascendant order, so use regulator_map_voltage_ascend.

---
 drivers/regulator/pf8x00-regulator.c | 1 +
 1 file changed, 1 insertion(+)
drivers/regulator/pf8x00-regulator.c +1 -1
index 9b28bd63208d..5d319fb81288 100644
@@ -359,6 +359,7 @@ static const struct regulator_ops pf8x00_buck7_ops = {
        .disable = regulator_disable_regmap,
        .is_enabled = regulator_is_enabled_regmap,
        .list_voltage = regulator_list_voltage_table,
+       .map_voltage = regulator_map_voltage_ascend,
        .set_voltage_sel = regulator_set_voltage_sel_regmap,
        .get_voltage_sel = regulator_get_voltage_sel_regmap,
        .get_current_limit = regulator_get_current_limit_regmap,
--
Quoted 2 lines

2.25.1

maintainer
#3 lore raw
In reply to Axel Lin
Quoted 2 lines · Axel Lin

The voltages in pf8x00_sw7_voltages are in ascendant order, so use regulator_map_voltage_ascend.

Applied to

https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git for-next

Thanks!

[1/1] regulator: pf8x00: Use regulator_map_voltage_ascend for pf8x00_buck7_ops

      commit: 6930ab7ac03c1be5d1944473cbf327c9d4d14ce4

All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.

You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying to this mail.

Thanks,
Mark