]> git.openfabrics.org - ~emulex/infiniband.git/commitdiff
regulator: max8649: Remove unused check_range() function
authorAxel Lin <axel.lin@gmail.com>
Thu, 17 May 2012 01:02:42 +0000 (09:02 +0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Thu, 17 May 2012 22:00:55 +0000 (23:00 +0100)
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>
drivers/regulator/max8649.c

index 39fffb2e40361547036ea8152ad5991d216eab8f..1f4bb80457b3a8a153a4ae9c44f46196ec8733db 100644 (file)
@@ -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)
 {