regulator: bcm590xx: Fix .enable_reg for BCM590XX_REG_VSR
authorAxel Lin <axel.lin@ingics.com>
Sat, 5 Jan 2019 03:28:17 +0000 (11:28 +0800)
committerMark Brown <broonie@kernel.org>
Mon, 7 Jan 2019 16:12:33 +0000 (16:12 +0000)
Current implementation missed the case BCM590XX_REG_VSR, so
bcm590xx_get_enable_register() returns 0 when id is BCM590XX_REG_VSR.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/bcm590xx-regulator.c

index 92d6d7b10cf7fdc506edefb0130178b4a5186902..e49c0a7d5dd56eb47550d1231457f34993cbd456 100644 (file)
@@ -242,8 +242,12 @@ static int bcm590xx_get_enable_register(int id)
                case BCM590XX_REG_SDSR2:
                        reg = BCM590XX_SDSR2PMCTRL1;
                        break;
+               case BCM590XX_REG_VSR:
+                       reg = BCM590XX_VSRPMCTRL1;
+                       break;
                case BCM590XX_REG_VBUS:
                        reg = BCM590XX_OTG_CTRL;
+                       break;
                }