regulator: qcom_smd: Make pm8953_lnldo linear_ranges entries properly sorted
authorAxel Lin <axel.lin@ingics.com>
Thu, 20 May 2021 11:27:19 +0000 (19:27 +0800)
committerMark Brown <broonie@sirena.org.uk>
Tue, 25 May 2021 15:45:08 +0000 (16:45 +0100)
For better readability, make linear_ranges entries sort by selector.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Message-Id: <20210520112719.1814396-1-axel.lin@ingics.com>
Signed-off-by: Mark Brown <broonie@sirena.org.uk>
drivers/regulator/qcom_smd-regulator.c

index 05df7b00e3b1770e30718799b70b60fd0b886acb..198fcc6551f6d47b8bcb9ddba3095fd416ffd5d0 100644 (file)
@@ -449,8 +449,8 @@ static const struct regulator_desc pm8950_pldo = {
 
 static const struct regulator_desc pm8953_lnldo = {
        .linear_ranges = (struct linear_range[]) {
-               REGULATOR_LINEAR_RANGE(1380000, 8, 15, 120000),
                REGULATOR_LINEAR_RANGE(690000, 0, 7, 60000),
+               REGULATOR_LINEAR_RANGE(1380000, 8, 15, 120000),
        },
        .n_linear_ranges = 2,
        .n_voltages = 16,