regulator: s2mpa01: Fix step values for some LDOs
authorStuart Menefy <stuart.menefy@mathembedded.com>
Tue, 12 Feb 2019 21:51:18 +0000 (21:51 +0000)
committerMark Brown <broonie@kernel.org>
Wed, 13 Feb 2019 12:31:19 +0000 (12:31 +0000)
The step values for some of the LDOs appears to be incorrect, resulting
in incorrect voltages (or at least, ones which are different from the
Samsung 3.4 vendor kernel).

Signed-off-by: Stuart Menefy <stuart.menefy@mathembedded.com>
Reviewed-by: Krzysztof Kozlowski <krzk@kernel.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
Cc: stable@vger.kernel.org
drivers/regulator/s2mpa01.c

index 095d25f3d2eae1fbc3220e2628f678c4e4498294..58a1fe583a6c939bb9a7e9964ee493dd3e2e2726 100644 (file)
@@ -298,13 +298,13 @@ static const struct regulator_desc regulators[] = {
        regulator_desc_ldo(2, STEP_50_MV),
        regulator_desc_ldo(3, STEP_50_MV),
        regulator_desc_ldo(4, STEP_50_MV),
-       regulator_desc_ldo(5, STEP_50_MV),
+       regulator_desc_ldo(5, STEP_25_MV),
        regulator_desc_ldo(6, STEP_25_MV),
        regulator_desc_ldo(7, STEP_50_MV),
        regulator_desc_ldo(8, STEP_50_MV),
        regulator_desc_ldo(9, STEP_50_MV),
        regulator_desc_ldo(10, STEP_50_MV),
-       regulator_desc_ldo(11, STEP_25_MV),
+       regulator_desc_ldo(11, STEP_50_MV),
        regulator_desc_ldo(12, STEP_50_MV),
        regulator_desc_ldo(13, STEP_50_MV),
        regulator_desc_ldo(14, STEP_50_MV),
@@ -315,11 +315,11 @@ static const struct regulator_desc regulators[] = {
        regulator_desc_ldo(19, STEP_50_MV),
        regulator_desc_ldo(20, STEP_50_MV),
        regulator_desc_ldo(21, STEP_50_MV),
-       regulator_desc_ldo(22, STEP_25_MV),
-       regulator_desc_ldo(23, STEP_25_MV),
+       regulator_desc_ldo(22, STEP_50_MV),
+       regulator_desc_ldo(23, STEP_50_MV),
        regulator_desc_ldo(24, STEP_50_MV),
        regulator_desc_ldo(25, STEP_50_MV),
-       regulator_desc_ldo(26, STEP_50_MV),
+       regulator_desc_ldo(26, STEP_25_MV),
        regulator_desc_buck1_4(1),
        regulator_desc_buck1_4(2),
        regulator_desc_buck1_4(3),