Hello,
On 11/14/2012 3:01 AM, Mark Brown wrote:
On Tue, Nov 13, 2012 at 10:49:37AM +0100, Marek Szyprowski wrote:
+ if (rdev-constraints-valid_ops_mask REGULATOR_CHANGE_VOLTAGE) {
+ if (rdev-desc-n_voltages)
+ return rdev-desc-n_voltages;
+ else
+
Some drivers has additional logic for fixed regulators. Let regulator core
to treat regulators which cannot change their voltage due to applied
constraints as fixed.
Signed-off-by: Marek Szyprowski m.szyprow...@samsung.com
---
drivers/regulator/core.c |9 -
1 file changed, 8
On Tue, Nov 13, 2012 at 10:49:37AM +0100, Marek Szyprowski wrote:
+ if (rdev-constraints-valid_ops_mask REGULATOR_CHANGE_VOLTAGE) {
+ if (rdev-desc-n_voltages)
+ return rdev-desc-n_voltages;
+ else
+ return -EINVAL;
+