diff options
author | Gustavo A. R. Silva <gustavo@embeddedor.com> | 2018-07-18 00:28:46 +0300 |
---|---|---|
committer | Sebastian Reichel <sebastian.reichel@collabora.co.uk> | 2018-07-23 01:10:47 +0300 |
commit | 37bab356f86b85f3bba85d3c82323a01255902bc (patch) | |
tree | 740fabe90bd06c52de4202a8f67801f52d520e3b /drivers/power/supply/axp20x_usb_power.c | |
parent | 9c7272412bc556f6af2a89e0f1660dacb44e3b1d (diff) | |
download | linux-37bab356f86b85f3bba85d3c82323a01255902bc.tar.xz |
power: supply: mark expected switch fall-throughs
In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.
Addresses-Coverity-ID: 1394724 ("Missing break in switch")
Addresses-Coverity-ID: 114958 ("Missing break in switch")
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
Diffstat (limited to 'drivers/power/supply/axp20x_usb_power.c')
-rw-r--r-- | drivers/power/supply/axp20x_usb_power.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/power/supply/axp20x_usb_power.c b/drivers/power/supply/axp20x_usb_power.c index 44f70dcea61e..42001df4bd13 100644 --- a/drivers/power/supply/axp20x_usb_power.c +++ b/drivers/power/supply/axp20x_usb_power.c @@ -222,6 +222,7 @@ static int axp20x_usb_power_set_current_max(struct axp20x_usb_power *power, case 100000: if (power->axp20x_id == AXP221_ID) return -EINVAL; + /* fall through */ case 500000: case 900000: val = (900000 - intval) / 400000; |