Skip to content

Commit b571dc3

Browse files
AxelLinbroonie
authored andcommitted
regulator: mc13xxx: Remove get_voltage implementation for single voltage regulators
This is not required after commit f7df20e "regulator: core: Use list_voltage() to read single voltage regulators" Signed-off-by: Axel Lin <axel.lin@gmail.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
1 parent 89009e1 commit b571dc3

4 files changed

Lines changed: 0 additions & 14 deletions

File tree

‎drivers/regulator/mc13783-regulator.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,6 @@ static struct regulator_ops mc13783_gpo_regulator_ops = {
324324
.is_enabled = mc13783_gpo_regulator_is_enabled,
325325
.list_voltage = regulator_list_voltage_table,
326326
.set_voltage = mc13xxx_fixed_regulator_set_voltage,
327-
.get_voltage = mc13xxx_fixed_regulator_get_voltage,
328327
};
329328

330329
static int __devinit mc13783_regulator_probe(struct platform_device *pdev)

‎drivers/regulator/mc13892-regulator.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,6 @@ static struct regulator_ops mc13892_gpo_regulator_ops = {
390390
.is_enabled = mc13892_gpo_regulator_is_enabled,
391391
.list_voltage = regulator_list_voltage_table,
392392
.set_voltage = mc13xxx_fixed_regulator_set_voltage,
393-
.get_voltage = mc13xxx_fixed_regulator_get_voltage,
394393
};
395394

396395
static int mc13892_sw_regulator_get_voltage_sel(struct regulator_dev *rdev)

‎drivers/regulator/mc13xxx-regulator-core.c‎

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -152,23 +152,12 @@ int mc13xxx_fixed_regulator_set_voltage(struct regulator_dev *rdev, int min_uV,
152152
}
153153
EXPORT_SYMBOL_GPL(mc13xxx_fixed_regulator_set_voltage);
154154

155-
int mc13xxx_fixed_regulator_get_voltage(struct regulator_dev *rdev)
156-
{
157-
int id = rdev_get_id(rdev);
158-
159-
dev_dbg(rdev_get_dev(rdev), "%s id: %d\n", __func__, id);
160-
161-
return rdev->desc->volt_table[0];
162-
}
163-
EXPORT_SYMBOL_GPL(mc13xxx_fixed_regulator_get_voltage);
164-
165155
struct regulator_ops mc13xxx_fixed_regulator_ops = {
166156
.enable = mc13xxx_regulator_enable,
167157
.disable = mc13xxx_regulator_disable,
168158
.is_enabled = mc13xxx_regulator_is_enabled,
169159
.list_voltage = regulator_list_voltage_table,
170160
.set_voltage = mc13xxx_fixed_regulator_set_voltage,
171-
.get_voltage = mc13xxx_fixed_regulator_get_voltage,
172161
};
173162
EXPORT_SYMBOL_GPL(mc13xxx_fixed_regulator_ops);
174163

‎drivers/regulator/mc13xxx.h‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ struct mc13xxx_regulator_priv {
3434

3535
extern int mc13xxx_fixed_regulator_set_voltage(struct regulator_dev *rdev,
3636
int min_uV, int max_uV, unsigned *selector);
37-
extern int mc13xxx_fixed_regulator_get_voltage(struct regulator_dev *rdev);
3837

3938
#ifdef CONFIG_OF
4039
extern int mc13xxx_get_num_regulators_dt(struct platform_device *pdev);

0 commit comments

Comments
 (0)