]> git.karo-electronics.de Git - linux-beck.git/commitdiff
regulator: mc13xxx: Remove mc13xxx_sw_regulator_is_enabled function
authorAxel Lin <axel.lin@gmail.com>
Tue, 19 Jun 2012 06:19:57 +0000 (14:19 +0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 19 Jun 2012 11:06:25 +0000 (12:06 +0100)
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>
drivers/regulator/mc13892-regulator.c
drivers/regulator/mc13xxx-regulator-core.c
drivers/regulator/mc13xxx.h

index 6329723b537255449a7839ec767aea9cd09a3588..b388b746452e024952cbfc6443adb2ec6bc4751b 100644 (file)
@@ -469,7 +469,6 @@ err:
 }
 
 static struct regulator_ops mc13892_sw_regulator_ops = {
-       .is_enabled = mc13xxx_sw_regulator_is_enabled,
        .list_voltage = regulator_list_voltage_table,
        .set_voltage_sel = mc13892_sw_regulator_set_voltage_sel,
        .get_voltage = mc13892_sw_regulator_get_voltage,
index 8a6b050ff5aa8f98323122f1be56b464842bdfd8..d6eda28ca5d02dbf4f06498a7787d177304d03f0 100644 (file)
@@ -170,12 +170,6 @@ struct regulator_ops mc13xxx_fixed_regulator_ops = {
 };
 EXPORT_SYMBOL_GPL(mc13xxx_fixed_regulator_ops);
 
-int mc13xxx_sw_regulator_is_enabled(struct regulator_dev *rdev)
-{
-       return 1;
-}
-EXPORT_SYMBOL_GPL(mc13xxx_sw_regulator_is_enabled);
-
 #ifdef CONFIG_OF
 int __devinit mc13xxx_get_num_regulators_dt(struct platform_device *pdev)
 {
index 9a8f72ce718eec5d8aec8dd1adf163f4e5cf0a8c..8343a25888d2f95c9df278dc5ab37c67415ef05b 100644 (file)
@@ -33,7 +33,6 @@ struct mc13xxx_regulator_priv {
 };
 
 extern int mc13xxx_sw_regulator(struct regulator_dev *rdev);
-extern int mc13xxx_sw_regulator_is_enabled(struct regulator_dev *rdev);
 extern int mc13xxx_fixed_regulator_set_voltage(struct regulator_dev *rdev,
                int min_uV, int max_uV, unsigned *selector);
 extern int mc13xxx_fixed_regulator_get_voltage(struct regulator_dev *rdev);