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

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

regulator: ab3100: Set fixed_uV instead of min_uV for fixed regulators



Slightly better readability by setting fixed_uV instead of min_uV.

Signed-off-by: default avatarAxel Lin <axel.lin@ingics.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 95602d7d
Loading
Loading
Loading
Loading
+3 −4
Original line number Original line Diff line number Diff line
@@ -354,7 +354,6 @@ static int ab3100_get_voltage_regulator_external(struct regulator_dev *reg)
}
}


static const struct regulator_ops regulator_ops_fixed = {
static const struct regulator_ops regulator_ops_fixed = {
	.list_voltage = regulator_list_voltage_linear,
	.enable      = ab3100_enable_regulator,
	.enable      = ab3100_enable_regulator,
	.disable     = ab3100_disable_regulator,
	.disable     = ab3100_disable_regulator,
	.is_enabled  = ab3100_is_enabled_regulator,
	.is_enabled  = ab3100_is_enabled_regulator,
@@ -401,7 +400,7 @@ ab3100_regulator_desc[AB3100_NUM_REGULATORS] = {
		.n_voltages = 1,
		.n_voltages = 1,
		.type = REGULATOR_VOLTAGE,
		.type = REGULATOR_VOLTAGE,
		.owner = THIS_MODULE,
		.owner = THIS_MODULE,
		.min_uV = LDO_A_VOLTAGE,
		.fixed_uV = LDO_A_VOLTAGE,
		.enable_time = 200,
		.enable_time = 200,
	},
	},
	{
	{
@@ -411,7 +410,7 @@ ab3100_regulator_desc[AB3100_NUM_REGULATORS] = {
		.n_voltages = 1,
		.n_voltages = 1,
		.type = REGULATOR_VOLTAGE,
		.type = REGULATOR_VOLTAGE,
		.owner = THIS_MODULE,
		.owner = THIS_MODULE,
		.min_uV = LDO_C_VOLTAGE,
		.fixed_uV = LDO_C_VOLTAGE,
		.enable_time = 200,
		.enable_time = 200,
	},
	},
	{
	{
@@ -421,7 +420,7 @@ ab3100_regulator_desc[AB3100_NUM_REGULATORS] = {
		.n_voltages = 1,
		.n_voltages = 1,
		.type = REGULATOR_VOLTAGE,
		.type = REGULATOR_VOLTAGE,
		.owner = THIS_MODULE,
		.owner = THIS_MODULE,
		.min_uV = LDO_D_VOLTAGE,
		.fixed_uV = LDO_D_VOLTAGE,
		.enable_time = 200,
		.enable_time = 200,
	},
	},
	{
	{