MLK-17215-1 video: fbdev: mipi_dsi_northwest: fix an integer overflow issue
authorFancy Fang <chen.fang@nxp.com>
Thu, 14 Dec 2017 07:25:26 +0000 (15:25 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Tue, 20 Mar 2018 19:51:42 +0000 (14:51 -0500)
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>
drivers/video/fbdev/mxc/mipi_dsi_northwest.c

index 60602b0..2b9061c 100644 (file)
@@ -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))