Commit 2c19ad43d1a4b0e376a0c764e3c2350afd018fac

Authored by Axel Lin
Committed by Mark Brown
1 parent 0e8e5c34cf

regulator: mc13xxx: Remove mc13xxx_sw_regulator_is_enabled function

If .is_enabled callback is not implemented, regulator core assumes that the
regulator is always on. Thus we don't need mc13xxx_sw_regulator_is_enabled
function.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>

Showing 3 changed files with 0 additions and 8 deletions Side-by-side Diff

drivers/regulator/mc13892-regulator.c
... ... @@ -469,7 +469,6 @@
469 469 }
470 470  
471 471 static struct regulator_ops mc13892_sw_regulator_ops = {
472   - .is_enabled = mc13xxx_sw_regulator_is_enabled,
473 472 .list_voltage = regulator_list_voltage_table,
474 473 .set_voltage_sel = mc13892_sw_regulator_set_voltage_sel,
475 474 .get_voltage = mc13892_sw_regulator_get_voltage,
drivers/regulator/mc13xxx-regulator-core.c
... ... @@ -170,12 +170,6 @@
170 170 };
171 171 EXPORT_SYMBOL_GPL(mc13xxx_fixed_regulator_ops);
172 172  
173   -int mc13xxx_sw_regulator_is_enabled(struct regulator_dev *rdev)
174   -{
175   - return 1;
176   -}
177   -EXPORT_SYMBOL_GPL(mc13xxx_sw_regulator_is_enabled);
178   -
179 173 #ifdef CONFIG_OF
180 174 int __devinit mc13xxx_get_num_regulators_dt(struct platform_device *pdev)
181 175 {
drivers/regulator/mc13xxx.h
... ... @@ -33,7 +33,6 @@
33 33 };
34 34  
35 35 extern int mc13xxx_sw_regulator(struct regulator_dev *rdev);
36   -extern int mc13xxx_sw_regulator_is_enabled(struct regulator_dev *rdev);
37 36 extern int mc13xxx_fixed_regulator_set_voltage(struct regulator_dev *rdev,
38 37 int min_uV, int max_uV, unsigned *selector);
39 38 extern int mc13xxx_fixed_regulator_get_voltage(struct regulator_dev *rdev);