Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0d3fb582 authored by Axel Lin's avatar Axel Lin Committed by Mark Brown
Browse files

regulator: ab8500: Remove get_voltage implementation for ab8500_regulator_fixed_ops



This is not required after commit f7df20ec
"regulator: core: Use list_voltage() to read single voltage regulators"

Signed-off-by: default avatarAxel Lin <axel.lin@gmail.com>
Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
parent 88348eff
Loading
Loading
Loading
Loading
+0 −6
Original line number Original line Diff line number Diff line
@@ -257,16 +257,10 @@ static struct regulator_ops ab8500_regulator_ops = {
	.set_voltage_time_sel = ab8500_regulator_set_voltage_time_sel,
	.set_voltage_time_sel = ab8500_regulator_set_voltage_time_sel,
};
};


static int ab8500_fixed_get_voltage(struct regulator_dev *rdev)
{
	return rdev->desc->min_uV;
}

static struct regulator_ops ab8500_regulator_fixed_ops = {
static struct regulator_ops ab8500_regulator_fixed_ops = {
	.enable		= ab8500_regulator_enable,
	.enable		= ab8500_regulator_enable,
	.disable	= ab8500_regulator_disable,
	.disable	= ab8500_regulator_disable,
	.is_enabled	= ab8500_regulator_is_enabled,
	.is_enabled	= ab8500_regulator_is_enabled,
	.get_voltage	= ab8500_fixed_get_voltage,
	.list_voltage	= regulator_list_voltage_linear,
	.list_voltage	= regulator_list_voltage_linear,
};
};