From d223ba9ce5585320242049315bfe4e35107291e1 Mon Sep 17 00:00:00 2001 From: Jeongtae Park Date: Tue, 3 Jul 2018 16:16:04 +0900 Subject: [PATCH] [COMMON] fimc-is2: fix invalid assignment: max PR JIRA ID: CPR-32 Change-Id: I7d49b7ea96ed386ae592d770035ec820e6e78ccd Signed-off-by: Jeongtae Park --- .../platform/exynos/fimc-is2/sensor/csi2/fimc-is-hw-csi-v5_2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/platform/exynos/fimc-is2/sensor/csi2/fimc-is-hw-csi-v5_2.c b/drivers/media/platform/exynos/fimc-is2/sensor/csi2/fimc-is-hw-csi-v5_2.c index fed8eeb976db..96c621a5f1d3 100644 --- a/drivers/media/platform/exynos/fimc-is2/sensor/csi2/fimc-is-hw-csi-v5_2.c +++ b/drivers/media/platform/exynos/fimc-is2/sensor/csi2/fimc-is-hw-csi-v5_2.c @@ -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; -- 2.20.1