regulator: bcm590xx: Fix .enable_reg for BCM590XX_REG_VSR

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>
This commit is contained in:
Axel Lin 2019-01-05 11:28:17 +08:00 committed by Mark Brown
parent 526d02dd37
commit d6afa2bed0
No known key found for this signature in database
GPG Key ID: 24D68B725D5487D0

View File

@ -242,8 +242,12 @@ static int bcm590xx_get_enable_register(int id)
case BCM590XX_REG_SDSR2: case BCM590XX_REG_SDSR2:
reg = BCM590XX_SDSR2PMCTRL1; reg = BCM590XX_SDSR2PMCTRL1;
break; break;
case BCM590XX_REG_VSR:
reg = BCM590XX_VSRPMCTRL1;
break;
case BCM590XX_REG_VBUS: case BCM590XX_REG_VBUS:
reg = BCM590XX_OTG_CTRL; reg = BCM590XX_OTG_CTRL;
break;
} }