aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/regulator
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@gmail.com>2012-05-16 21:02:42 -0400
committerMark Brown <broonie@opensource.wolfsonmicro.com>2012-05-17 18:00:55 -0400
commit0cbd6702186af44ca14d68d3fd3f3368287f4ee4 (patch)
tree3bdb7ca18de6c12e0862c8ca1ffb3495db6c18ab /drivers/regulator
parent8b370e086b90245ef1da7fa6d41a1da205e11e77 (diff)
regulator: max8649: Remove unused check_range() function
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>
Diffstat (limited to 'drivers/regulator')
-rw-r--r--drivers/regulator/max8649.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/drivers/regulator/max8649.c b/drivers/regulator/max8649.c
index 39fffb2e4036..1f4bb80457b3 100644
--- a/drivers/regulator/max8649.c
+++ b/drivers/regulator/max8649.c
@@ -60,16 +60,6 @@ struct max8649_regulator_info {
60 unsigned ramp_down:1; 60 unsigned ramp_down:1;
61}; 61};
62 62
63/* I2C operations */
64
65static inline int check_range(int min_uV, int max_uV)
66{
67 if ((min_uV < MAX8649_DCDC_VMIN) || (max_uV > MAX8649_DCDC_VMAX)
68 || (min_uV > max_uV))
69 return -EINVAL;
70 return 0;
71}
72
73/* EN_PD means pulldown on EN input */ 63/* EN_PD means pulldown on EN input */
74static int max8649_enable(struct regulator_dev *rdev) 64static int max8649_enable(struct regulator_dev *rdev)
75{ 65{