power: supply: ab8500_charger: Mark expected switch fall-through
authorGustavo A. R. Silva <gustavo@embeddedor.com>
Tue, 20 Aug 2019 20:55:26 +0000 (15:55 -0500)
committerGustavo A. R. Silva <gustavo@embeddedor.com>
Wed, 21 Aug 2019 00:43:33 +0000 (19:43 -0500)
commit5274fdba8e3c04e9ac1ba457379afc8835f9aa0f
tree7881695aeebec7ec89759a8058e2c43cc5debf2a
parentc9cbbb9f04f3ee27970f08d3aa6e6742a43d4ca5
power: supply: ab8500_charger: Mark expected switch fall-through

Mark switch cases where we are expecting to fall through.

Fix the following warning (Building: allmodconfig arm):

drivers/power/supply/ab8500_charger.c: In function ‘ab8500_charger_max_usb_curr’:
drivers/power/supply/ab8500_charger.c:738:6: warning: this statement may fall through [-Wimplicit-fallthrough=]
   if (di->vbus_detected) {
      ^
drivers/power/supply/ab8500_charger.c:745:2: note: here
  case USB_STAT_HM_IDGND:
  ^~~~

Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
drivers/power/supply/ab8500_charger.c