]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
regulator: lp87565: Fix missing register for LP87565_BUCK_0
authorAxel Lin <axel.lin@ingics.com>
Fri, 1 Mar 2019 06:16:40 +0000 (14:16 +0800)
committerKhalid Elmously <khalid.elmously@canonical.com>
Fri, 14 Feb 2020 05:29:37 +0000 (00:29 -0500)
BugLink: https://bugs.launchpad.net/bugs/1863019
[ Upstream commit d1a6cbdf1e597917cb642c655512d91b71a35d22 ]

LP87565_BUCK_0 is missed, fix it.

Fixes: f0168a9bf ("regulator: lp87565: Add support for lp87565 PMIC regulators")
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Reviewed-by: Keerthy <j-keerthy@ti.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/regulator/lp87565-regulator.c

index cfdbe294fb6af9cc5a33ca8484d982ece53e6ed6..32d4e6ec2e19867129ddcc19c9d250a521c890ab 100644 (file)
@@ -188,7 +188,7 @@ static int lp87565_regulator_probe(struct platform_device *pdev)
        struct lp87565 *lp87565 = dev_get_drvdata(pdev->dev.parent);
        struct regulator_config config = { };
        struct regulator_dev *rdev;
-       int i, min_idx = LP87565_BUCK_1, max_idx = LP87565_BUCK_3;
+       int i, min_idx = LP87565_BUCK_0, max_idx = LP87565_BUCK_3;
 
        platform_set_drvdata(pdev, lp87565);