diff options
author | Gustavo A. R. Silva <gustavoars@kernel.org> | 2021-07-13 21:50:47 +0200 |
---|---|---|
committer | Gustavo A. R. Silva <gustavoars@kernel.org> | 2021-07-13 21:50:47 +0200 |
commit | b51883d47d37c3f3fa80d6bcd8cc3a57d5b95130 (patch) | |
tree | 0580686a5ff4834693450fa5447708f19e316041 /drivers/power | |
parent | dmaengine: ti: k3-udma: Fix fall-through warning for Clang (diff) | |
download | linux-b51883d47d37c3f3fa80d6bcd8cc3a57d5b95130.tar.xz linux-b51883d47d37c3f3fa80d6bcd8cc3a57d5b95130.zip |
power: supply: Fix fall-through warnings for Clang
Fix the following fallthrough warnings:
drivers/power/supply/ab8500_fg.c:1730:2: warning: unannotated fall-through between switch labels [-Wimplicit-fallthrough]
drivers/power/supply/abx500_chargalg.c:1155:3: warning: unannotated fall-through between switch labels [-Wimplicit-fallthrough]
Reported-by: Nathan Chancellor <nathan@kernel.org>
Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Diffstat (limited to 'drivers/power')
-rw-r--r-- | drivers/power/supply/ab8500_fg.c | 2 | ||||
-rw-r--r-- | drivers/power/supply/abx500_chargalg.c | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/drivers/power/supply/ab8500_fg.c b/drivers/power/supply/ab8500_fg.c index 3d45ed0157c6..a6ebdb269fdd 100644 --- a/drivers/power/supply/ab8500_fg.c +++ b/drivers/power/supply/ab8500_fg.c @@ -1728,6 +1728,7 @@ static void ab8500_fg_algorithm_calibrate(struct ab8500_fg *di) break; case AB8500_FG_CALIB_WAIT: dev_dbg(di->dev, "Calibration WFI\n"); + break; default: break; } @@ -2224,6 +2225,7 @@ static int ab8500_fg_get_ext_psy_data(struct device *dev, void *data) queue_work(di->fg_wq, &di->fg_work); break; } + break; default: break; } diff --git a/drivers/power/supply/abx500_chargalg.c b/drivers/power/supply/abx500_chargalg.c index a17849bfacbf..b72826cf6794 100644 --- a/drivers/power/supply/abx500_chargalg.c +++ b/drivers/power/supply/abx500_chargalg.c @@ -1150,6 +1150,7 @@ static int abx500_chargalg_get_ext_psy_data(struct device *dev, void *data) default: break; } + break; default: break; } |