Skip to content

Commit b620c17

Browse files
GustavoARSilvaLee Jones
authored andcommitted
mfd: db8500-prcmu: Mark expected switch fall-throughs
Mark switch cases where we are expecting to fall through. This patch fixes the following warnings: drivers/mfd/db8500-prcmu.c: In function 'dsiclk_rate': drivers/mfd/db8500-prcmu.c:1592:7: warning: this statement may fall through [-Wimplicit-fallthrough=] div *= 2; ~~~~^~~~ drivers/mfd/db8500-prcmu.c:1593:2: note: here case PRCM_DSI_PLLOUT_SEL_PHI_2: ^~~~ drivers/mfd/db8500-prcmu.c:1594:7: warning: this statement may fall through [-Wimplicit-fallthrough=] div *= 2; ~~~~^~~~ drivers/mfd/db8500-prcmu.c:1595:2: note: here case PRCM_DSI_PLLOUT_SEL_PHI: ^~~~ Reported-by: Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com> Reviewed-by: Linus Walleij <linus.walleij@linaro.org> Reviewed-by: Kees Cook <keescook@chromium.org> Signed-off-by: Lee Jones <lee.jones@linaro.org>
1 parent ec65b56 commit b620c17

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎drivers/mfd/db8500-prcmu.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1590,8 +1590,10 @@ static unsigned long dsiclk_rate(u8 n)
15901590
switch (divsel) {
15911591
case PRCM_DSI_PLLOUT_SEL_PHI_4:
15921592
div *= 2;
1593+
/* Fall through */
15931594
case PRCM_DSI_PLLOUT_SEL_PHI_2:
15941595
div *= 2;
1596+
/* Fall through */
15951597
case PRCM_DSI_PLLOUT_SEL_PHI:
15961598
return pll_rate(PRCM_PLLDSI_FREQ, clock_rate(PRCMU_HDMICLK),
15971599
PLL_RAW) / div;

0 commit comments

Comments
 (0)