Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ec0ab075 authored by Axel Lin's avatar Axel Lin Committed by Mark Brown
Browse files

regulator: tps65023: Set n_voltages to 1 for fixed voltage



For fixed voltage, the n_voltages should be 1 rather than 0.

Signed-off-by: default avatarAxel Lin <axel.lin@gmail.com>
Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
parent c7057422
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -324,6 +324,9 @@ static int __devinit tps_65023_probe(struct i2c_client *client,

		tps->desc[i].name = info->name;
		tps->desc[i].id = i;
		if (info->fixed)
			tps->desc[i].n_voltages = 1;
		else
			tps->desc[i].n_voltages = info->table_len;
		tps->desc[i].ops = (i > TPS65023_DCDC_3 ?
					&tps65023_ldo_ops : &tps65023_dcdc_ops);