diff options
author | Colin Ian King <colin.king@canonical.com> | 2019-06-27 14:16:39 +0100 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2019-07-02 11:41:23 +0100 |
commit | f3f4363b1239584efc1a22c5ca0f2308e5693c38 (patch) | |
tree | 00915b434c55d877c80b8d81be32d2c8d81871c8 /drivers/regulator | |
parent | 7ee63bd74750a2c6fac31805ca0ac67f2522bfa5 (diff) |
regulator: lp87565: Fix missing break in switch statement
Currently the LP87565_DEVICE_TYPE_LP87561_Q1 case does not have a
break statement, causing it to fall through to a dev_err message.
Fix this by adding in the missing break statement.
Addresses-Coverity: ("Missing break in switch")
Fixes: 7ee63bd74750 ("regulator: lp87565: Add 4-phase lp87561 regulator support")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Reviewed-by: Keerthy <j-keerthy@ti.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'drivers/regulator')
-rw-r--r-- | drivers/regulator/lp87565-regulator.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/regulator/lp87565-regulator.c b/drivers/regulator/lp87565-regulator.c index af00d1ffcf33..142b6f17dcfe 100644 --- a/drivers/regulator/lp87565-regulator.c +++ b/drivers/regulator/lp87565-regulator.c @@ -183,6 +183,7 @@ static int lp87565_regulator_probe(struct platform_device *pdev) case LP87565_DEVICE_TYPE_LP87561_Q1: min_idx = LP87565_BUCK_3210; max_idx = LP87565_BUCK_3210; + break; default: dev_err(lp87565->dev, "Invalid lp config %d\n", lp87565->dev_type); |