瀏覽代碼

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);