Skip to content

Commit

Permalink
regulator: fan53555: remove vsel_max not used
Browse files Browse the repository at this point in the history
The max voltage will be bounded by min_uV, uV_step and n_voltages, so
remove it to avoid confusing.

Signed-off-by: Yunfan Zhang <yfzhang@marvell.com>
Reviewed-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
  • Loading branch information
Yunfan Zhang authored and Mark Brown committed Sep 10, 2012
1 parent e4c5288 commit 3b26e48
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions drivers/regulator/fan53555.c
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ struct fan53555_device_info {
unsigned int sleep_reg;
/* Voltage range and step(linear) */
unsigned int vsel_min;
unsigned int vsel_max;
unsigned int vsel_step;
/* Voltage slew rate limiting */
unsigned int slew_rate;
Expand Down Expand Up @@ -180,12 +179,10 @@ static int fan53555_device_setup(struct fan53555_device_info *di,
case FAN53555_CHIP_ID_03:
case FAN53555_CHIP_ID_05:
di->vsel_min = 600000;
di->vsel_max = 1230000;
di->vsel_step = 10000;
break;
case FAN53555_CHIP_ID_04:
di->vsel_min = 603000;
di->vsel_max = 1411000;
di->vsel_step = 12826;
break;
default:
Expand Down

0 comments on commit 3b26e48

Please sign in to comment.