diff options
author | Gustavo A. R. Silva <gustavo@embeddedor.com> | 2018-07-18 00:47:39 +0300 |
---|---|---|
committer | Sebastian Reichel <sre@kernel.org> | 2018-07-23 01:14:49 +0300 |
commit | cc44ba91166beb78f9cb29d5e3d41c0a2d0a7329 (patch) | |
tree | 6ed372bdbcb0f878ecff6a27b885152c3d7331d9 /drivers | |
parent | a427503edaaed9b75ed9746a654cece7e93e60a8 (diff) | |
download | linux-cc44ba91166beb78f9cb29d5e3d41c0a2d0a7329.tar.xz |
power: supply: max77693_charger: fix unintentional fall-through
It seems that a *break* is missing in order to avoid a fall-through.
Otherwise, the calculation of *data* makes no sense.
Addresses-Coverity-ID: 1271172 ("Missing break in switch")
Fixes: 87c2d9067893 ("power: max77693: Add charger driver for Maxim 77693")
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Reviewed-by: Krzysztof Kozlowski <krzk@kernel.org>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/power/supply/max77693_charger.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/power/supply/max77693_charger.c b/drivers/power/supply/max77693_charger.c index 6c78884bad5e..749c7926e3c9 100644 --- a/drivers/power/supply/max77693_charger.c +++ b/drivers/power/supply/max77693_charger.c @@ -567,6 +567,7 @@ static int max77693_set_charge_input_threshold_volt(struct max77693_charger *chg case 4800000: case 4900000: data = (uvolt - 4700000) / 100000; + break; default: dev_err(chg->dev, "Wrong value for charge input voltage regulation threshold\n"); return -EINVAL; |