diff options
author | Alex Gonzalez <alex.gonzalez@digi.com> | 2012-01-10 18:46:25 +0100 |
---|---|---|
committer | Alex Gonzalez <alex.gonzalez@digi.com> | 2012-01-11 16:09:13 +0100 |
commit | 972644177fabf94220b3bc8d2fe3d97478416b90 (patch) | |
tree | 5b5ea6c3b53e9119457e8776c6b1fff05d065cb1 /drivers | |
parent | a0b2c37568661949d7e822047ab6c3b95ccc5903 (diff) |
da9052-regulator: Do not return error when setting voltage of non GO regs.
Not all regulators require a register trigger. Do not return error for
those cases.
Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/regulator/da9052-regulator.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/regulator/da9052-regulator.c b/drivers/regulator/da9052-regulator.c index 9c51a28f6018..0c51990ed7ed 100644 --- a/drivers/regulator/da9052-regulator.c +++ b/drivers/regulator/da9052-regulator.c @@ -320,7 +320,7 @@ int da9052_ldo_buck_set_voltage(struct regulator_dev *rdev, break; default: da9052_unlock(priv->da9052); - return -EINVAL; + return 0; } ret = priv->da9052->write(priv->da9052, &ssc_msg); |