Patch "regulator: tps6287x: Fix n_voltages" has been added to the 6.5-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    regulator: tps6287x: Fix n_voltages

to the 6.5-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     regulator-tps6287x-fix-n_voltages.patch
and it can be found in the queue-6.5 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit e8f100a570ee8c57795d4248acc486c77fe95e93
Author: Vincent Whitchurch <vincent.whitchurch@xxxxxxxx>
Date:   Tue Aug 29 16:04:12 2023 +0200

    regulator: tps6287x: Fix n_voltages
    
    [ Upstream commit c69290557c7571dff3d995fa27619b965915e8a1 ]
    
    There are 256 possible voltage settings for each range, not 256 possible
    voltage settings in total.
    
    Fixes: 15a1cd245d5b ("regulator: tps6287x: Fix missing .n_voltages setting")
    Signed-off-by: Vincent Whitchurch <vincent.whitchurch@xxxxxxxx
    Link: https://lore.kernel.org/r/20230829-tps-voltages-v1-1-7ba4f958a194@xxxxxxxx
    Signed-off-by: Mark Brown <broonie@xxxxxxxxxx
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/regulator/tps6287x-regulator.c b/drivers/regulator/tps6287x-regulator.c
index b1c0963586ace..e45579a4498c6 100644
--- a/drivers/regulator/tps6287x-regulator.c
+++ b/drivers/regulator/tps6287x-regulator.c
@@ -119,7 +119,7 @@ static struct regulator_desc tps6287x_reg = {
 	.ramp_mask = TPS6287X_CTRL1_VRAMP,
 	.ramp_delay_table = tps6287x_ramp_table,
 	.n_ramp_values = ARRAY_SIZE(tps6287x_ramp_table),
-	.n_voltages = 256,
+	.n_voltages = 256 * ARRAY_SIZE(tps6287x_voltage_ranges),
 	.linear_ranges = tps6287x_voltage_ranges,
 	.n_linear_ranges = ARRAY_SIZE(tps6287x_voltage_ranges),
 	.linear_range_selectors = tps6287x_voltage_range_sel,



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux