diff options
author | 2020-11-20 12:33:08 -0600 | |
---|---|---|
committer | 2020-11-23 18:46:31 +0000 | |
commit | b52b417ccac4fae5b1f2ec4f1d46eb91e4493dc5 (patch) | |
tree | 91eb42bfe99f21b37987075c60368659e92791e7 /drivers/regulator | |
parent | Merge tag 'scmi-voltage-5.11' of git://git.kernel.org/pub/scm/linux/kernel/gi... (diff) | |
download | linux-b52b417ccac4fae5b1f2ec4f1d46eb91e4493dc5.tar.gz linux-b52b417ccac4fae5b1f2ec4f1d46eb91e4493dc5.tar.bz2 linux-b52b417ccac4fae5b1f2ec4f1d46eb91e4493dc5.zip |
regulator: as3722: Fix fall-through warnings for Clang
In preparation to enable -Wimplicit-fallthrough for Clang, fix a warning
by explicitly adding a fallthrough pseudo-keyword instead of letting the
code fall through to the next case.
Link: https://github.com/KSPP/linux/issues/115
Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Link: https://lore.kernel.org/r/c0efb81064f71837f19408f65b52d155103ee514.1605896059.git.gustavoars@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/regulator')
-rw-r--r-- | drivers/regulator/as3722-regulator.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/regulator/as3722-regulator.c b/drivers/regulator/as3722-regulator.c index 33ca197860b3..7bebf9ce6271 100644 --- a/drivers/regulator/as3722-regulator.c +++ b/drivers/regulator/as3722-regulator.c @@ -455,7 +455,8 @@ static int as3722_sd_set_mode(struct regulator_dev *rdev, switch (mode) { case REGULATOR_MODE_FAST: val = as3722_reg_lookup[id].mode_mask; - case REGULATOR_MODE_NORMAL: /* fall down */ + fallthrough; + case REGULATOR_MODE_NORMAL: break; default: return -EINVAL; |