Skip to content

Commit

Permalink
regulator: max8649: Remove unused check_range() function
Browse files Browse the repository at this point in the history
This driver has been converted to use regulator_map_voltage_linear and
set_voltage_sel now. regulator_map_voltage_linear will check the the voltage
falls within specified range. The check_range() function is not used, remove it.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
  • Loading branch information
Axel Lin authored and Mark Brown committed May 17, 2012
1 parent 8b370e0 commit 0cbd670
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions drivers/regulator/max8649.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,16 +60,6 @@ struct max8649_regulator_info {
unsigned ramp_down:1;
};

/* I2C operations */

static inline int check_range(int min_uV, int max_uV)
{
if ((min_uV < MAX8649_DCDC_VMIN) || (max_uV > MAX8649_DCDC_VMAX)
|| (min_uV > max_uV))
return -EINVAL;
return 0;
}

/* EN_PD means pulldown on EN input */
static int max8649_enable(struct regulator_dev *rdev)
{
Expand Down

0 comments on commit 0cbd670

Please sign in to comment.