mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 1/1] regulator: s2mps11: Clean up redundant code
@ 2013-12-26  9:09 Sachin Kamat
  2013-12-30 11:56 ` Mark Brown
  0 siblings, 1 reply; 2+ messages in thread
From: Sachin Kamat @ 2013-12-26  9:09 UTC (permalink / raw)
  To: linux-kernel; +Cc: broonie, sachin.kamat

BUCK 3 and 4 share the same ramp delay. Hence make it a fall through
case instead of duplicating the code.

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

diff --git a/drivers/regulator/s2mps11.c b/drivers/regulator/s2mps11.c
index 9e61922d8230..d9e557990577 100644
--- a/drivers/regulator/s2mps11.c
+++ b/drivers/regulator/s2mps11.c
@@ -70,8 +70,6 @@ static int s2mps11_regulator_set_voltage_time_sel(struct regulator_dev *rdev,
 		ramp_delay = s2mps11->ramp_delay2;
 		break;
 	case S2MPS11_BUCK3:
-		ramp_delay = s2mps11->ramp_delay34;
-		break;
 	case S2MPS11_BUCK4:
 		ramp_delay = s2mps11->ramp_delay34;
 		break;
-- 
1.7.9.5


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

* Re: [PATCH 1/1] regulator: s2mps11: Clean up redundant code
  2013-12-26  9:09 [PATCH 1/1] regulator: s2mps11: Clean up redundant code Sachin Kamat
@ 2013-12-30 11:56 ` Mark Brown
  0 siblings, 0 replies; 2+ messages in thread
From: Mark Brown @ 2013-12-30 11:56 UTC (permalink / raw)
  To: Sachin Kamat; +Cc: linux-kernel

[-- Attachment #1: Type: text/plain, Size: 191 bytes --]

On Thu, Dec 26, 2013 at 02:39:03PM +0530, Sachin Kamat wrote:
> BUCK 3 and 4 share the same ramp delay. Hence make it a fall through
> case instead of duplicating the code.

Applied, thanks.

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

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

end of thread, other threads:[~2013-12-30 11:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-12-26  9:09 [PATCH 1/1] regulator: s2mps11: Clean up redundant code Sachin Kamat
2013-12-30 11:56 ` 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®