diff options
author | Robby Cai <robby.cai@nxp.com> | 2019-12-03 16:53:56 +0800 |
---|---|---|
committer | Dong Aisheng <aisheng.dong@nxp.com> | 2021-11-02 17:09:47 +0800 |
commit | 4bca1964158c9ee1c19f0125722605e793912207 (patch) | |
tree | 11b5ab389d24509374f3ed4418ea7c4b8f1bc8ea /drivers/dma/pxp | |
parent | 86aab25d24fde370584395dfb5d9241a72f6ad4a (diff) |
LF-105-1 dmaengine: pxp: fix build warning of fall through
Fix the following build warning:
../drivers/dma/pxp/pxp_dma_v3.c: In function 'pxp_store_shift_ctrl_config':
../drivers/dma/pxp/pxp_dma_v3.c:1700:17: warning: this statement may fall through [-Wimplicit-fallthrough=]
shift_bypass = 1;
~~~~~~~~~~~~~^~~
../drivers/dma/pxp/pxp_dma_v3.c:1701:3: note: here
case PXP_PIX_FMT_YVYU:
^~~~
../drivers/dma/pxp/pxp_dma_v3.c:1705:17: warning: this statement may fall through [-Wimplicit-fallthrough=]
shift_bypass = 1;
~~~~~~~~~~~~~^~~
../drivers/dma/pxp/pxp_dma_v3.c:1706:3: note: here
case PXP_PIX_FMT_NV61:
^~~~
Signed-off-by: Robby Cai <robby.cai@nxp.com>
Reviewed-by: Sandor Yu <Sandor.yu@nxp.com>
Diffstat (limited to 'drivers/dma/pxp')
-rw-r--r-- | drivers/dma/pxp/pxp_dma_v3.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/dma/pxp/pxp_dma_v3.c b/drivers/dma/pxp/pxp_dma_v3.c index 04350ca507b3..0b6afe03c1fa 100644 --- a/drivers/dma/pxp/pxp_dma_v3.c +++ b/drivers/dma/pxp/pxp_dma_v3.c @@ -1698,11 +1698,13 @@ static uint32_t pxp_store_shift_ctrl_config(struct pxp_pixmap *out, switch(out->format) { case PXP_PIX_FMT_YUYV: shift_bypass = 1; + /* fall through */ case PXP_PIX_FMT_YVYU: shift_ctrl.out_yuv422_1p_en = 1; break; case PXP_PIX_FMT_NV16: shift_bypass = 1; + /* fall through */ case PXP_PIX_FMT_NV61: shift_ctrl.out_yuv422_2p_en = 1; break; |