Browse Source

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 years ago
parent
commit
7409042572
1 changed files with 1 additions and 1 deletions
  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;
 		reg_base_type = reg_dump_desc->reg_base_type;
 		if (reg_base_type == 0 || 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,
 			CAM_ERR(CAM_UTIL,
 				"Invalid Reg dump base type: %d",
 				"Invalid Reg dump base type: %d",
 				reg_base_type);
 				reg_base_type);