소스 검색

msm: camera: common: Change the max base type for reg dump

With the newly added register base types for reg dump, the
validation needs to be changed to account for the new max.

CRs-Fixed: 2841729
Change-Id: I6babe7a1e4d6def51b8e433be4431f04a0a417e8
Signed-off-by: Karthik Anantha Ram <[email protected]>
Karthik Anantha Ram 4 년 전
부모
커밋
7409042572
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      drivers/cam_utils/cam_soc_util.c

+ 1 - 1
drivers/cam_utils/cam_soc_util.c

@@ -2427,7 +2427,7 @@ int cam_soc_util_reg_dump_to_cmd_buf(void *ctx,
 
 		reg_base_type = reg_dump_desc->reg_base_type;
 		if (reg_base_type == 0 || reg_base_type >
-			CAM_REG_DUMP_BASE_TYPE_CAMNOC) {
+			CAM_REG_DUMP_BASE_TYPE_SFE_RIGHT) {
 			CAM_ERR(CAM_UTIL,
 				"Invalid Reg dump base type: %d",
 				reg_base_type);