summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--drivers/regulator/da9052-regulator.c2
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);