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

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

regulator: ab8500: Fix list_voltage for fixed voltage regulators



commit b080c78a
"regulator: ab8500: Update voltage handling for fixed voltage regulators"
removes min_uV settings and sets volt_table for all fixed voltages, thus
we can not use regulator_list_voltage_linear now. Use
regulator_list_voltage_table instead.

Signed-off-by: default avatarAxel Lin <axel.lin@ingics.com>
Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
parent a652f3d2
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -699,14 +699,14 @@ static struct regulator_ops ab8500_regulator_mode_ops = {
	.get_optimum_mode	= ab8500_regulator_get_optimum_mode,
	.get_optimum_mode	= ab8500_regulator_get_optimum_mode,
	.set_mode		= ab8500_regulator_set_mode,
	.set_mode		= ab8500_regulator_set_mode,
	.get_mode		= ab8500_regulator_get_mode,
	.get_mode		= ab8500_regulator_get_mode,
	.list_voltage		= regulator_list_voltage_linear,
	.list_voltage		= regulator_list_voltage_table,
};
};


static struct regulator_ops ab8500_regulator_ops = {
static struct regulator_ops ab8500_regulator_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,
	.list_voltage		= regulator_list_voltage_linear,
	.list_voltage		= regulator_list_voltage_table,
};
};


static struct regulator_ops ab8500_regulator_anamic_mode_ops = {
static struct regulator_ops ab8500_regulator_anamic_mode_ops = {