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

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

regulator: twl: Remove get_voltage implementation for single voltage regulators



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 9c7fde4e
Loading
Loading
Loading
Loading
+0 −11
Original line number Original line Diff line number Diff line
@@ -624,18 +624,9 @@ static int twlfixed_list_voltage(struct regulator_dev *rdev, unsigned index)
	return info->min_mV * 1000;
	return info->min_mV * 1000;
}
}


static int twlfixed_get_voltage(struct regulator_dev *rdev)
{
	struct twlreg_info	*info = rdev_get_drvdata(rdev);

	return info->min_mV * 1000;
}

static struct regulator_ops twl4030fixed_ops = {
static struct regulator_ops twl4030fixed_ops = {
	.list_voltage	= twlfixed_list_voltage,
	.list_voltage	= twlfixed_list_voltage,


	.get_voltage	= twlfixed_get_voltage,

	.enable		= twl4030reg_enable,
	.enable		= twl4030reg_enable,
	.disable	= twl4030reg_disable,
	.disable	= twl4030reg_disable,
	.is_enabled	= twl4030reg_is_enabled,
	.is_enabled	= twl4030reg_is_enabled,
@@ -648,8 +639,6 @@ static struct regulator_ops twl4030fixed_ops = {
static struct regulator_ops twl6030fixed_ops = {
static struct regulator_ops twl6030fixed_ops = {
	.list_voltage	= twlfixed_list_voltage,
	.list_voltage	= twlfixed_list_voltage,


	.get_voltage	= twlfixed_get_voltage,

	.enable		= twl6030reg_enable,
	.enable		= twl6030reg_enable,
	.disable	= twl6030reg_disable,
	.disable	= twl6030reg_disable,
	.is_enabled	= twl6030reg_is_enabled,
	.is_enabled	= twl6030reg_is_enabled,