]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
regulator: tps65218: Fix strobe assignment
authorKeerthy <j-keerthy@ti.com>
Fri, 10 Nov 2017 11:52:43 +0000 (17:22 +0530)
committerMark Brown <broonie@kernel.org>
Fri, 10 Nov 2017 12:33:12 +0000 (12:33 +0000)
Currentlly tps_info structure is no longer used. So use the
strobes parameter in tps65218 structure to capture the info.

Fixes: 2dc4940360d4c0c (regulator: tps65218: Remove all the compatibles)
Signed-off-by: Keerthy <j-keerthy@ti.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/tps65218-regulator.c

index 9aafbb03482d735fcc55bdfab3df83249900a024..bc489958fed7537ffd6bbb559796b8f95f5d39a4 100644 (file)
@@ -154,7 +154,7 @@ static int tps65218_pmic_set_suspend_disable(struct regulator_dev *dev)
 
        if (!tps->strobes[rid]) {
                if (rid == TPS65218_DCDC_3)
-                       tps->info[rid]->strobe = 3;
+                       tps->strobes[rid] = 3;
                else
                        return -EINVAL;
        }