diff options
author | Axel Lin <axel.lin@ingics.com> | 2021-05-17 04:03:18 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2021-05-19 16:19:12 +0300 |
commit | 79c7e1447c1c998e2571191e3cad12f9285ee22e (patch) | |
tree | 02706d9ca6e009483ae138e11ce25e687b263466 /drivers/regulator/fan53555.c | |
parent | a7f003147b785d9780ceeac13a8e344927a3b9ea (diff) | |
download | linux-79c7e1447c1c998e2571191e3cad12f9285ee22e.tar.xz |
regulator: fan53555: Cleanup unused define and redundant assignment
TCS_VSEL_NSEL_MASK is not used so remove it.
Also remove redundant assignment for di->slew_reg.
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Link: https://lore.kernel.org/r/20210517010318.1027949-2-axel.lin@ingics.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/regulator/fan53555.c')
-rw-r--r-- | drivers/regulator/fan53555.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/regulator/fan53555.c b/drivers/regulator/fan53555.c index d582ef3a3aeb..f3f49cf3731b 100644 --- a/drivers/regulator/fan53555.c +++ b/drivers/regulator/fan53555.c @@ -56,7 +56,6 @@ #define FAN53555_NVOLTAGES 64 /* Numbers of voltages */ #define FAN53526_NVOLTAGES 128 -#define TCS_VSEL_NSEL_MASK 0x7f #define TCS_VSEL0_MODE (1 << 7) #define TCS_VSEL1_MODE (1 << 6) @@ -362,7 +361,6 @@ static int fan53555_voltages_setup_silergy(struct fan53555_device_info *di) return -EINVAL; } di->slew_reg = FAN53555_CONTROL; - di->slew_reg = FAN53555_CONTROL; di->slew_mask = CTL_SLEW_MASK; di->slew_shift = CTL_SLEW_SHIFT; di->vsel_count = FAN53555_NVOLTAGES; |