From 3b0328c5a5107d63c94d9a242001edb6919069c9 Mon Sep 17 00:00:00 2001 From: Srikanth Uyyala Date: Wed, 19 Jul 2017 15:28:54 +0530 Subject: [PATCH] msm: isp: fix the invalid type conversion stream_idx cannot take negative value and wrongly type casted to int. Use uint32_t to fix this issue. Change-Id: I7f306d3a24fc8f73aae91c0514b3747592466404 Signed-off-by: Srikanth Uyyala --- drivers/media/platform/msm/camera_v2/isp/msm_isp_axi_util.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/platform/msm/camera_v2/isp/msm_isp_axi_util.h b/drivers/media/platform/msm/camera_v2/isp/msm_isp_axi_util.h index a8d4cfb43927..0f029c0d5178 100644 --- a/drivers/media/platform/msm/camera_v2/isp/msm_isp_axi_util.h +++ b/drivers/media/platform/msm/camera_v2/isp/msm_isp_axi_util.h @@ -136,7 +136,7 @@ static inline void msm_isp_cfg_stream_scratch( } static inline struct msm_vfe_axi_stream *msm_isp_get_stream_common_data( - struct vfe_device *vfe_dev, int stream_idx) + struct vfe_device *vfe_dev, uint32_t stream_idx) { struct msm_vfe_common_dev_data *common_data = vfe_dev->common_data; struct msm_vfe_axi_stream *stream_info;