summaryrefslogtreecommitdiff
path: root/drivers/video
diff options
context:
space:
mode:
authorFancy Fang <chen.fang@nxp.com>2017-12-14 15:25:26 +0800
committerJason Liu <jason.hui.liu@nxp.com>2019-02-12 10:29:58 +0800
commit6af5ed213da8fba4333cd011634e043c3f468b71 (patch)
tree6f88dc1c4f159a2a083338cf35ed90cb22d3d033 /drivers/video
parent00e22c4bd4e1d41928ff0df65710a25f6ca9de02 (diff)
MLK-17215-1 video: fbdev: mipi_dsi_northwest: fix an integer overflow issue
On ARM32 socs, the 'UL' and 'ULL' postfix are different. And if using a 64bit constant integer, 'ULL' is the right postfix. Signed-off-by: Fancy Fang <chen.fang@nxp.com>
Diffstat (limited to 'drivers/video')
-rw-r--r--drivers/video/fbdev/mxc/mipi_dsi_northwest.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/fbdev/mxc/mipi_dsi_northwest.c b/drivers/video/fbdev/mxc/mipi_dsi_northwest.c
index 60602b02ae46..2b9061cd8db0 100644
--- a/drivers/video/fbdev/mxc/mipi_dsi_northwest.c
+++ b/drivers/video/fbdev/mxc/mipi_dsi_northwest.c
@@ -52,7 +52,7 @@
#define NS2PS_RATIO (1000)
#define MIPI_LCD_SLEEP_MODE_DELAY (120)
#define MIPI_FIFO_TIMEOUT msecs_to_jiffies(250)
-#define PICOS_PER_SEC (1000000000UL)
+#define PICOS_PER_SEC (1000000000ULL)
#define PICOS2KHZ2(a, bpp) \
DIV_ROUND_CLOSEST_ULL(PICOS_PER_SEC * (bpp), (a))