summaryrefslogtreecommitdiff
path: root/drivers/regulator/fan53880.c
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@ingics.com>2021-06-07 17:29:07 +0300
committerMark Brown <broonie@kernel.org>2021-06-08 15:37:47 +0300
commit2e11737a772b95c6587df73f216eec1762431432 (patch)
tree5031d2a3b34b1566873b76cf9fcc8d77f124e8a0 /drivers/regulator/fan53880.c
parent0ea461b4f229739345870a086aa4647a16ff42ff (diff)
downloadlinux-2e11737a772b95c6587df73f216eec1762431432.tar.xz
regulator: fan53880: Fix vsel_mask setting for FAN53880_BUCK
According to the datasheet: REGISTER DETAILS − 0x02 BUCK, BUCK_OUT is BIT0 ~ BIT7. So vsel_mask for FAN53880_BUCK should be 0xFF. Fixes: e6dea51e2d41 ("regulator: fan53880: Add initial support") Signed-off-by: Axel Lin <axel.lin@ingics.com> Link: https://lore.kernel.org/r/20210607142907.1599905-1-axel.lin@ingics.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/regulator/fan53880.c')
-rw-r--r--drivers/regulator/fan53880.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/regulator/fan53880.c b/drivers/regulator/fan53880.c
index d49f10ac222d..d7e34e9188c7 100644
--- a/drivers/regulator/fan53880.c
+++ b/drivers/regulator/fan53880.c
@@ -77,7 +77,7 @@ static const struct regulator_desc fan53880_regulators[] = {
},
.n_linear_ranges = 2,
.vsel_reg = FAN53880_BUCKVOUT,
- .vsel_mask = 0x7f,
+ .vsel_mask = 0xff,
.enable_reg = FAN53880_ENABLE,
.enable_mask = 0x10,
.enable_time = 480,