From: Axel Lin Date: Thu, 17 May 2012 01:02:42 +0000 (+0800) Subject: regulator: max8649: Remove unused check_range() function X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=0cbd6702186af44ca14d68d3fd3f3368287f4ee4;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Mark Brown --- 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 { 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) {