Commit a102962f authored by Mark Brown's avatar Mark Brown Committed by Linus Walleij

ARM: ux300: Fix unimplementable regulation constraints

It doesn't make sense to grant permission to change the status of a
regulator that is also set as always on and similarly it doesn't make
sense to allow a driver to change the voltage of a regulator which can
only be set to a single voltage.
Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent e816b57a
...@@ -146,9 +146,6 @@ static struct ab3100_platform_data ab3100_plf_data = { ...@@ -146,9 +146,6 @@ static struct ab3100_platform_data ab3100_plf_data = {
.min_uV = 1800000, .min_uV = 1800000,
.max_uV = 1800000, .max_uV = 1800000,
.valid_modes_mask = REGULATOR_MODE_NORMAL, .valid_modes_mask = REGULATOR_MODE_NORMAL,
.valid_ops_mask =
REGULATOR_CHANGE_VOLTAGE |
REGULATOR_CHANGE_STATUS,
.always_on = 1, .always_on = 1,
.boot_on = 1, .boot_on = 1,
}, },
...@@ -160,9 +157,6 @@ static struct ab3100_platform_data ab3100_plf_data = { ...@@ -160,9 +157,6 @@ static struct ab3100_platform_data ab3100_plf_data = {
.min_uV = 2500000, .min_uV = 2500000,
.max_uV = 2500000, .max_uV = 2500000,
.valid_modes_mask = REGULATOR_MODE_NORMAL, .valid_modes_mask = REGULATOR_MODE_NORMAL,
.valid_ops_mask =
REGULATOR_CHANGE_VOLTAGE |
REGULATOR_CHANGE_STATUS,
.always_on = 1, .always_on = 1,
.boot_on = 1, .boot_on = 1,
}, },
...@@ -230,8 +224,7 @@ static struct ab3100_platform_data ab3100_plf_data = { ...@@ -230,8 +224,7 @@ static struct ab3100_platform_data ab3100_plf_data = {
.max_uV = 1800000, .max_uV = 1800000,
.valid_modes_mask = REGULATOR_MODE_NORMAL, .valid_modes_mask = REGULATOR_MODE_NORMAL,
.valid_ops_mask = .valid_ops_mask =
REGULATOR_CHANGE_VOLTAGE | REGULATOR_CHANGE_VOLTAGE,
REGULATOR_CHANGE_STATUS,
.always_on = 1, .always_on = 1,
.boot_on = 1, .boot_on = 1,
}, },
......
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