]> Pileus Git - ~andy/linux/commitdiff
regulator: s2mps11: Clean up redundant code
authorSachin Kamat <sachin.kamat@linaro.org>
Thu, 26 Dec 2013 09:09:03 +0000 (14:39 +0530)
committerMark Brown <broonie@linaro.org>
Mon, 30 Dec 2013 11:56:32 +0000 (11:56 +0000)
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>
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/regulator/s2mps11.c

index 333677d68d0ee31f784e76906bc930b592fc7257..39fbe6a10c145deafba51fbc6bef6ad08637c6a9 100644 (file)
@@ -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;