[COMMON] fimc-is2: fix invalid assignment: max
authorJeongtae Park <jtp.park@samsung.com>
Tue, 3 Jul 2018 07:16:04 +0000 (16:16 +0900)
committerSunyoung Kang <sy0816.kang@samsung.com>
Mon, 23 Jul 2018 08:05:45 +0000 (17:05 +0900)
PR JIRA ID: CPR-32

Change-Id: I7d49b7ea96ed386ae592d770035ec820e6e78ccd
Signed-off-by: Jeongtae Park <jtp.park@samsung.com>
drivers/media/platform/exynos/fimc-is2/sensor/csi2/fimc-is-hw-csi-v5_2.c

index fed8eeb976db6e989fd4366a9c2c75b183cb961a..96c621a5f1d3fa3eb3ba5e46373819d6f7c91e7d 100644 (file)
@@ -563,7 +563,7 @@ int csi_hw_s_dma_common_dynamic(u32 __iomem *base_reg, size_t size, unsigned int
        /* CSIS_DMA_F_DMA_SRAM1_SPLIT : internal SRAM1 is 10KB (640 * 16 bytes) */
        /* CSIS_DMA_F_DMA_SRAM0_SPLIT : internal SRAM0 is 10KB (640 * 16 bytes) */
        /* This register can be set between 0 to 640 */
-       max = size / 16;
+       max = (u32)(size / 16);
        sram0_split = max / 2;
        sram1_split = max / 2;