projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8cdded9
)
regulator: fan53555: Fix missing slew_reg/mask/shift settings for FAN53526
author
Axel Lin
<axel.lin@ingics.com>
Tue, 25 May 2021 12:40:16 +0000
(20:40 +0800)
committer
Mark Brown
<broonie@kernel.org>
Thu, 3 Jun 2021 13:04:52 +0000
(14:04 +0100)
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>
drivers/regulator/fan53555.c
patch
|
blob
|
history
diff --git
a/drivers/regulator/fan53555.c
b/drivers/regulator/fan53555.c
index
f3f49cf
..
9770a4d
100644
(file)
--- 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;