]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit - drivers/mfd/mxs-lradc.c
mfd: mxs-lradc: Mark expected switch fall-through
authorGustavo A. R. Silva <gustavo@embeddedor.com>
Mon, 11 Feb 2019 22:48:27 +0000 (16:48 -0600)
committerLee Jones <lee.jones@linaro.org>
Mon, 18 Feb 2019 09:07:22 +0000 (09:07 +0000)
commitd2d833e0bf2bad221a955626b942b38312630894
treed42416767ecc8ea4df62480c84edd2d402f7dbee
parent4720eb47529e456410470e6e2bed38d5d36cbb8a
mfd: mxs-lradc: Mark expected switch fall-through

In preparation to enabling -Wimplicit-fallthrough, mark switch
cases where we are expecting to fall through.

This patch fixes the following warning:

drivers/mfd/mxs-lradc.c: In function ‘mxs_lradc_probe’:
drivers/mfd/mxs-lradc.c:179:7: warning: this statement may fall through [-Wimplicit-fallthrough=]
    if (lradc->soc == IMX28_LRADC) {
       ^
drivers/mfd/mxs-lradc.c:185:3: note: here
   default:
   ^~~~~~~

Warning level 3 was used: -Wimplicit-fallthrough=3

Notice that, in this particular case, the code comment is modified
in accordance with what GCC is expecting to find.

This patch is part of the ongoing efforts to enable
-Wimplicit-fallthrough.

Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/mxs-lradc.c