diff options
author | Gustavo A. R. Silva <gustavo@embeddedor.com> | 2018-07-17 23:28:46 +0200 |
---|---|---|
committer | Sebastian Reichel <sebastian.reichel@collabora.co.uk> | 2018-07-23 00:10:47 +0200 |
commit | 37bab356f86b85f3bba85d3c82323a01255902bc (patch) | |
tree | 740fabe90bd06c52de4202a8f67801f52d520e3b /drivers/power/supply/cros_usbpd-charger.c | |
parent | power: supply: lego_ev3_battery: fix Vce offset (diff) | |
download | linux-37bab356f86b85f3bba85d3c82323a01255902bc.tar.xz linux-37bab356f86b85f3bba85d3c82323a01255902bc.zip |
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/cros_usbpd-charger.c')
-rw-r--r-- | drivers/power/supply/cros_usbpd-charger.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/power/supply/cros_usbpd-charger.c b/drivers/power/supply/cros_usbpd-charger.c index 3a0c96fd1bc1..688a16bacfbb 100644 --- a/drivers/power/supply/cros_usbpd-charger.c +++ b/drivers/power/supply/cros_usbpd-charger.c @@ -325,6 +325,7 @@ static int cros_usbpd_charger_get_prop(struct power_supply *psy, */ if (ec_device->mkbp_event_supported || port->psy_online) break; + /* fall through */ case POWER_SUPPLY_PROP_CURRENT_MAX: case POWER_SUPPLY_PROP_VOLTAGE_MAX_DESIGN: case POWER_SUPPLY_PROP_VOLTAGE_NOW: |