forked from luck/tmp_suning_uos_patched
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> Reviewed-by: Kees Cook <keescook@chromium.org> Reviewed-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
This commit is contained in:
parent
3da6bd945b
commit
795952d9f4
|
@ -1590,8 +1590,10 @@ static unsigned long dsiclk_rate(u8 n)
|
|||
switch (divsel) {
|
||||
case PRCM_DSI_PLLOUT_SEL_PHI_4:
|
||||
div *= 2;
|
||||
/* Fall through */
|
||||
case PRCM_DSI_PLLOUT_SEL_PHI_2:
|
||||
div *= 2;
|
||||
/* Fall through */
|
||||
case PRCM_DSI_PLLOUT_SEL_PHI:
|
||||
return pll_rate(PRCM_PLLDSI_FREQ, clock_rate(PRCMU_HDMICLK),
|
||||
PLL_RAW) / div;
|
||||
|
|
Loading…
Reference in New Issue
Block a user