diff options
author | Axel Lin <axel.lin@ingics.com> | 2021-05-25 15:40:16 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2021-06-03 16:04:52 +0300 |
commit | 30b38b805b36c03db3703ef62397111c783b5f3b (patch) | |
tree | 16017ee7de64293fdea36e8777aea0bd0a4bce0f /drivers/regulator | |
parent | 8cdded982a6cf95d5ed7e3a014fb3d8dde6b3a94 (diff) | |
download | linux-30b38b805b36c03db3703ef62397111c783b5f3b.tar.xz |
regulator: fan53555: Fix missing slew_reg/mask/shift settings for FAN53526
The di->slew_reg/di->slew_mask/di->slew_shift was not set in current code,
fix it.
Fixes: f2a9eb975ab2 ("regulator: fan53555: Add support for FAN53526")
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Link: https://lore.kernel.org/r/20210525124017.2550029-1-axel.lin@ingics.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/regulator')
-rw-r--r-- | drivers/regulator/fan53555.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/regulator/fan53555.c b/drivers/regulator/fan53555.c index f3f49cf3731b..9770a4df83d4 100644 --- a/drivers/regulator/fan53555.c +++ b/drivers/regulator/fan53555.c @@ -296,6 +296,9 @@ static int fan53526_voltages_setup_fairchild(struct fan53555_device_info *di) return -EINVAL; } + di->slew_reg = FAN53555_CONTROL; + di->slew_mask = CTL_SLEW_MASK; + di->slew_shift = CTL_SLEW_SHIFT; di->vsel_count = FAN53526_NVOLTAGES; return 0; |