Skip to content
Unverified Commit 8141b6da authored by Thomas Richard's avatar Thomas Richard Committed by Mark Brown
Browse files

regulator: tps6594-regulator: Fix the number of irqs for TPS65224 and TPS6594



The number of irqs is computed to allocate the right amount of memory for
the irq data. An array of struct tps6594_regulator_irq_data is allocated
one time for all the irqs. Each irq uses one cell of the array.

If the computed number of irqs is not correct, not allocated memory could
be used.

Fix the	values used in the calculation for TPS6594 and TPS65224.

Fixes: 00c82652 (regulator: tps6594-regulator: Add TI TPS65224 PMIC regulators)
Signed-off-by: default avatarThomas Richard <thomas.richard@bootlin.com>
Tested-by: default avatarNishanth Menon <nm@ti.com>
Link: https://msgid.link/r/20240603170100.2394402-1-thomas.richard@bootlin.com


Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent c3f38fa6
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment