]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
regulator: arizona-ldo1: Correct default regulator init_data
authorCharles Keepax <ckeepax@opensource.wolfsonmicro.com>
Tue, 18 Mar 2014 10:49:17 +0000 (10:49 +0000)
committerJiri Slaby <jslaby@suse.cz>
Thu, 15 May 2014 07:55:02 +0000 (09:55 +0200)
commit a35ff2861690eaf9dbb38fa744a8a9e6f4ebfd61 upstream.

Both 5102 and 8997 have the regulator capable of supplying 1.8V, and the
voltage step from the 5110 regulator is different from what is specified
in the default description. This patch updates the default regulator
description to match 5110 and selects the 1.8V capable description for
8997.

Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
drivers/regulator/arizona-ldo1.c

index 81d8681c31959557fa78a7121d64e85c957e719b..7917bb2fa8346eba88a4582e7285569fafeef89c 100644 (file)
@@ -153,11 +153,9 @@ static const struct regulator_desc arizona_ldo1 = {
 
        .vsel_reg = ARIZONA_LDO1_CONTROL_1,
        .vsel_mask = ARIZONA_LDO1_VSEL_MASK,
-       .bypass_reg = ARIZONA_LDO1_CONTROL_1,
-       .bypass_mask = ARIZONA_LDO1_BYPASS,
        .min_uV = 900000,
-       .uV_step = 50000,
-       .n_voltages = 7,
+       .uV_step = 25000,
+       .n_voltages = 13,
        .enable_time = 500,
 
        .owner = THIS_MODULE,
@@ -203,6 +201,7 @@ static int arizona_ldo1_probe(struct platform_device *pdev)
         */
        switch (arizona->type) {
        case WM5102:
+       case WM8997:
                desc = &arizona_ldo1_hc;
                ldo1->init_data = arizona_ldo1_dvfs;
                break;