Commit 74c8cfda authored by Axel Lin's avatar Axel Lin Committed by Mark Brown

regulator: lp8788-ldo: Set n_voltages to 1 for fixed voltage

For fixed voltage, the n_voltages should be 1 rather than 0.
Signed-off-by: default avatarAxel Lin <axel.lin@gmail.com>
Acked-by: default avatarMilo(Woogyom) Kim <milo.kim@ti.com>
Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
parent f1dcf9e4
...@@ -496,6 +496,7 @@ static struct regulator_desc lp8788_dldo_desc[] = { ...@@ -496,6 +496,7 @@ static struct regulator_desc lp8788_dldo_desc[] = {
.name = "dldo12", .name = "dldo12",
.id = DLDO12, .id = DLDO12,
.ops = &lp8788_ldo_voltage_fixed_ops, .ops = &lp8788_ldo_voltage_fixed_ops,
.n_voltages = 1,
.type = REGULATOR_VOLTAGE, .type = REGULATOR_VOLTAGE,
.owner = THIS_MODULE, .owner = THIS_MODULE,
.enable_reg = LP8788_EN_LDO_B, .enable_reg = LP8788_EN_LDO_B,
...@@ -521,6 +522,7 @@ static struct regulator_desc lp8788_aldo_desc[] = { ...@@ -521,6 +522,7 @@ static struct regulator_desc lp8788_aldo_desc[] = {
.name = "aldo2", .name = "aldo2",
.id = ALDO2, .id = ALDO2,
.ops = &lp8788_ldo_voltage_fixed_ops, .ops = &lp8788_ldo_voltage_fixed_ops,
.n_voltages = 1,
.type = REGULATOR_VOLTAGE, .type = REGULATOR_VOLTAGE,
.owner = THIS_MODULE, .owner = THIS_MODULE,
.enable_reg = LP8788_EN_LDO_B, .enable_reg = LP8788_EN_LDO_B,
...@@ -530,6 +532,7 @@ static struct regulator_desc lp8788_aldo_desc[] = { ...@@ -530,6 +532,7 @@ static struct regulator_desc lp8788_aldo_desc[] = {
.name = "aldo3", .name = "aldo3",
.id = ALDO3, .id = ALDO3,
.ops = &lp8788_ldo_voltage_fixed_ops, .ops = &lp8788_ldo_voltage_fixed_ops,
.n_voltages = 1,
.type = REGULATOR_VOLTAGE, .type = REGULATOR_VOLTAGE,
.owner = THIS_MODULE, .owner = THIS_MODULE,
.enable_reg = LP8788_EN_LDO_B, .enable_reg = LP8788_EN_LDO_B,
...@@ -539,6 +542,7 @@ static struct regulator_desc lp8788_aldo_desc[] = { ...@@ -539,6 +542,7 @@ static struct regulator_desc lp8788_aldo_desc[] = {
.name = "aldo4", .name = "aldo4",
.id = ALDO4, .id = ALDO4,
.ops = &lp8788_ldo_voltage_fixed_ops, .ops = &lp8788_ldo_voltage_fixed_ops,
.n_voltages = 1,
.type = REGULATOR_VOLTAGE, .type = REGULATOR_VOLTAGE,
.owner = THIS_MODULE, .owner = THIS_MODULE,
.enable_reg = LP8788_EN_LDO_B, .enable_reg = LP8788_EN_LDO_B,
...@@ -548,6 +552,7 @@ static struct regulator_desc lp8788_aldo_desc[] = { ...@@ -548,6 +552,7 @@ static struct regulator_desc lp8788_aldo_desc[] = {
.name = "aldo5", .name = "aldo5",
.id = ALDO5, .id = ALDO5,
.ops = &lp8788_ldo_voltage_fixed_ops, .ops = &lp8788_ldo_voltage_fixed_ops,
.n_voltages = 1,
.type = REGULATOR_VOLTAGE, .type = REGULATOR_VOLTAGE,
.owner = THIS_MODULE, .owner = THIS_MODULE,
.enable_reg = LP8788_EN_LDO_C, .enable_reg = LP8788_EN_LDO_C,
...@@ -583,6 +588,7 @@ static struct regulator_desc lp8788_aldo_desc[] = { ...@@ -583,6 +588,7 @@ static struct regulator_desc lp8788_aldo_desc[] = {
.name = "aldo8", .name = "aldo8",
.id = ALDO8, .id = ALDO8,
.ops = &lp8788_ldo_voltage_fixed_ops, .ops = &lp8788_ldo_voltage_fixed_ops,
.n_voltages = 1,
.type = REGULATOR_VOLTAGE, .type = REGULATOR_VOLTAGE,
.owner = THIS_MODULE, .owner = THIS_MODULE,
.enable_reg = LP8788_EN_LDO_C, .enable_reg = LP8788_EN_LDO_C,
...@@ -592,6 +598,7 @@ static struct regulator_desc lp8788_aldo_desc[] = { ...@@ -592,6 +598,7 @@ static struct regulator_desc lp8788_aldo_desc[] = {
.name = "aldo9", .name = "aldo9",
.id = ALDO9, .id = ALDO9,
.ops = &lp8788_ldo_voltage_fixed_ops, .ops = &lp8788_ldo_voltage_fixed_ops,
.n_voltages = 1,
.type = REGULATOR_VOLTAGE, .type = REGULATOR_VOLTAGE,
.owner = THIS_MODULE, .owner = THIS_MODULE,
.enable_reg = LP8788_EN_LDO_C, .enable_reg = LP8788_EN_LDO_C,
...@@ -601,6 +608,7 @@ static struct regulator_desc lp8788_aldo_desc[] = { ...@@ -601,6 +608,7 @@ static struct regulator_desc lp8788_aldo_desc[] = {
.name = "aldo10", .name = "aldo10",
.id = ALDO10, .id = ALDO10,
.ops = &lp8788_ldo_voltage_fixed_ops, .ops = &lp8788_ldo_voltage_fixed_ops,
.n_voltages = 1,
.type = REGULATOR_VOLTAGE, .type = REGULATOR_VOLTAGE,
.owner = THIS_MODULE, .owner = THIS_MODULE,
.enable_reg = LP8788_EN_LDO_C, .enable_reg = LP8788_EN_LDO_C,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment