Commit 79c7e144 authored by Axel Lin's avatar Axel Lin Committed by Mark Brown

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: default avatarAxel Lin <axel.lin@ingics.com>
Link: https://lore.kernel.org/r/20210517010318.1027949-2-axel.lin@ingics.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent a7f00314
...@@ -56,7 +56,6 @@ ...@@ -56,7 +56,6 @@
#define FAN53555_NVOLTAGES 64 /* Numbers of voltages */ #define FAN53555_NVOLTAGES 64 /* Numbers of voltages */
#define FAN53526_NVOLTAGES 128 #define FAN53526_NVOLTAGES 128
#define TCS_VSEL_NSEL_MASK 0x7f
#define TCS_VSEL0_MODE (1 << 7) #define TCS_VSEL0_MODE (1 << 7)
#define TCS_VSEL1_MODE (1 << 6) #define TCS_VSEL1_MODE (1 << 6)
...@@ -362,7 +361,6 @@ static int fan53555_voltages_setup_silergy(struct fan53555_device_info *di) ...@@ -362,7 +361,6 @@ static int fan53555_voltages_setup_silergy(struct fan53555_device_info *di)
return -EINVAL; return -EINVAL;
} }
di->slew_reg = FAN53555_CONTROL; di->slew_reg = FAN53555_CONTROL;
di->slew_reg = FAN53555_CONTROL;
di->slew_mask = CTL_SLEW_MASK; di->slew_mask = CTL_SLEW_MASK;
di->slew_shift = CTL_SLEW_SHIFT; di->slew_shift = CTL_SLEW_SHIFT;
di->vsel_count = FAN53555_NVOLTAGES; di->vsel_count = FAN53555_NVOLTAGES;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment