Commit 0cbd6702186af44ca14d68d3fd3f3368287f4ee4
Committed by
Mark Brown
1 parent
8b370e086b
Exists in
smarc-l5.0.0_1.0.0-ga
and in
5 other branches
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>
Showing 1 changed file with 0 additions and 10 deletions Side-by-side Diff
drivers/regulator/max8649.c
... | ... | @@ -60,16 +60,6 @@ |
60 | 60 | unsigned ramp_down:1; |
61 | 61 | }; |
62 | 62 | |
63 | -/* I2C operations */ | |
64 | - | |
65 | -static 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 | 63 | /* EN_PD means pulldown on EN input */ |
74 | 64 | static int max8649_enable(struct regulator_dev *rdev) |
75 | 65 | { |