Skip to content

Commit 180a135

Browse files
mwallebroonie
authored andcommitted
regulator: tps6594-regulator: remove hardcoded buck config
Commit 00c8265 ("regulator: tps6594-regulator: Add TI TPS65224 PMIC regulators") added support for the TPS65224 and made the description of the multi-phase buck converter variable depending on the variant of the PMIC. But this was just done for MUTLI_BUCK12 and MULTI_BUCK12_34 configs probably because this variant only supports a multi-phase configuration on buck 1 and 2. Remove the hardcoded value for the remaining two configs, too as future PMIC variants might also support these. This is a preparation patch to refactor the regulator description and is compile-time only tested. Signed-off-by: Michael Walle <mwalle@kernel.org> Acked-by: Mark Brown <broonie@kernel.org> Link: https://patch.msgid.link/20250703113153.2447110-7-mwalle@kernel.org Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent 16d1a9b commit 180a135

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

drivers/regulator/tps6594-regulator.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -695,14 +695,14 @@ static int tps6594_regulator_probe(struct platform_device *pdev)
695695

696696
if (i == MULTI_BUCK123 || i == MULTI_BUCK1234) {
697697
error = tps6594_request_reg_irqs(pdev, rdev, irq_data,
698-
tps6594_bucks_irq_types[buck_idx + 2],
698+
bucks_irq_types[buck_idx + 2],
699699
nr_types, &irq_idx);
700700
if (error)
701701
return error;
702702
}
703703
if (i == MULTI_BUCK1234) {
704704
error = tps6594_request_reg_irqs(pdev, rdev, irq_data,
705-
tps6594_bucks_irq_types[buck_idx + 3],
705+
bucks_irq_types[buck_idx + 3],
706706
nr_types, &irq_idx);
707707
if (error)
708708
return error;

0 commit comments

Comments
 (0)