From: Jeongtae Park Date: Tue, 3 Jul 2018 07:16:04 +0000 (+0900) Subject: [COMMON] fimc-is2: fix invalid assignment: max X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d223ba9ce5585320242049315bfe4e35107291e1;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [COMMON] fimc-is2: fix invalid assignment: max PR JIRA ID: CPR-32 Change-Id: I7d49b7ea96ed386ae592d770035ec820e6e78ccd Signed-off-by: Jeongtae Park --- 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;