summaryrefslogtreecommitdiff
path: root/drivers/video
diff options
context:
space:
mode:
authorFancy Fang <chen.fang@nxp.com>2017-09-19 18:56:38 +0800
committerJason Liu <jason.hui.liu@nxp.com>2019-02-12 10:28:37 +0800
commit8b929d61178e6bfa40402edc58dae18a0d79bd6d (patch)
tree7ba2f5a5bd06bce2967081cdcbc31416ef11bc0f /drivers/video
parentabfc812813460496d4baa1d2cfdcb6fdf2b8cbec (diff)
MLK-16536-2 video: fbdev: dcss: refine 'esize' obtainment
The 'esize' is better be got by 'kfifo_esize()' instead of using 'sizeof' to make the code more compatible and easier to unserstand. Signed-off-by: Fancy Fang <chen.fang@nxp.com> Reviewed-by: Robby Cai <robby.cai@nxp.com>
Diffstat (limited to 'drivers/video')
-rw-r--r--drivers/video/fbdev/mxc/imx_dcss.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/fbdev/mxc/imx_dcss.c b/drivers/video/fbdev/mxc/imx_dcss.c
index e0859423d347..37e0e0c28de2 100644
--- a/drivers/video/fbdev/mxc/imx_dcss.c
+++ b/drivers/video/fbdev/mxc/imx_dcss.c
@@ -2233,7 +2233,7 @@ static void dcss_ctxld_config(struct work_struct *work)
chans = &info->chans;
cfifo = &info->cfifo;
dsb_len = cc->sb_data_len + cc->db_data_len;
- esize = sizeof(struct ctxld_unit);
+ esize = kfifo_esize(&cfifo->fifo);
sg_init_table(cfifo->sgl, cfifo->sgl_num);
nsgl = kfifo_dma_out_prepare(&cfifo->fifo, cfifo->sgl,