mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 01/15] regulator: wm8350: Do not hardcode return value
@ 2014-02-18 10:40 Sachin Kamat
  2014-02-18 10:40 ` [PATCH 02/15] regulator: ti-abb: " Sachin Kamat
                   ` (14 more replies)
  0 siblings, 15 replies; 29+ messages in thread
From: Sachin Kamat @ 2014-02-18 10:40 UTC (permalink / raw)
  To: linux-kernel; +Cc: broonie, lgirdwood, sachin.kamat

Propagate the error value returned by the function instead.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
---
 drivers/regulator/wm8350-regulator.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/regulator/wm8350-regulator.c b/drivers/regulator/wm8350-regulator.c
index de7b9c73e3fa..7ec7c390eeda 100644
--- a/drivers/regulator/wm8350-regulator.c
+++ b/drivers/regulator/wm8350-regulator.c
@@ -361,7 +361,7 @@ static int wm8350_dcdc_set_suspend_voltage(struct regulator_dev *rdev, int uV)
 
 	sel = regulator_map_voltage_linear(rdev, uV, uV);
 	if (sel < 0)
-		return -EINVAL;
+		return sel;
 
 	/* all DCDCs have same mV bits */
 	val = wm8350_reg_read(wm8350, volt_reg) & ~WM8350_DC1_VSEL_MASK;
@@ -574,7 +574,7 @@ static int wm8350_ldo_set_suspend_voltage(struct regulator_dev *rdev, int uV)
 
 	sel = regulator_map_voltage_linear_range(rdev, uV, uV);
 	if (sel < 0)
-		return -EINVAL;
+		return sel;
 
 	/* all LDOs have same mV bits */
 	val = wm8350_reg_read(wm8350, volt_reg) & ~WM8350_LDO1_VSEL_MASK;
-- 
1.7.9.5


^ permalink raw reply	[flat|nested] 29+ messages in thread

end of thread, other threads:[~2014-02-19 16:38 UTC | newest]

Thread overview: 29+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-02-18 10:40 [PATCH 01/15] regulator: wm8350: Do not hardcode return value Sachin Kamat
2014-02-18 10:40 ` [PATCH 02/15] regulator: ti-abb: " Sachin Kamat
2014-02-19 13:07   ` Mark Brown
2014-02-18 10:40 ` [PATCH 03/15] regulator: ti-abb: Remove redundant error message Sachin Kamat
2014-02-19 13:07   ` Mark Brown
2014-02-18 10:41 ` [PATCH 04/15] regulator: max8973: " Sachin Kamat
2014-02-19 13:08   ` Mark Brown
2014-02-18 10:41 ` [PATCH 05/15] regulator: max8925: Do not hardcode return value Sachin Kamat
2014-02-19 13:08   ` Mark Brown
2014-02-18 10:41 ` [PATCH 06/15] regulator: lp872x: Do not hardcode return values Sachin Kamat
2014-02-19 16:27   ` Mark Brown
2014-02-18 10:41 ` [PATCH 07/15] regulator: lp3971: Do not hardcode return value Sachin Kamat
2014-02-19 16:28   ` Mark Brown
2014-02-18 10:41 ` [PATCH 08/15] regulator: fan53555: Do not hardcode return values Sachin Kamat
2014-02-19 16:30   ` Mark Brown
2014-02-18 10:41 ` [PATCH 09/15] regulator: da9063: " Sachin Kamat
2014-02-19 16:31   ` Mark Brown
2014-02-18 10:41 ` [PATCH 10/15] regulator: da9055: Do not hardcode return value Sachin Kamat
2014-02-19 16:34   ` Mark Brown
2014-02-18 10:41 ` [PATCH 11/15] regulator: 88pm800: Remove redundant error message Sachin Kamat
2014-02-19 16:34   ` Mark Brown
2014-02-18 10:41 ` [PATCH 12/15] regulator: act8865: " Sachin Kamat
2014-02-19 16:35   ` Mark Brown
2014-02-18 10:41 ` [PATCH 13/15] regulator: arizona-ldo1: " Sachin Kamat
2014-02-19 16:38   ` Mark Brown
2014-02-18 10:41 ` [PATCH 14/15] regulator: arizona-micsupp: " Sachin Kamat
2014-02-19 16:38   ` Mark Brown
2014-02-18 10:41 ` [PATCH 15/15] regulator: as3711: " Sachin Kamat
2014-02-19  4:25 ` [PATCH 01/15] regulator: wm8350: Do not hardcode return value Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®