Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0a74024b authored by Jigarkumar Zala's avatar Jigarkumar Zala Committed by Suresh Vankadara
Browse files

msm: camera: Change log level for common soc util



Register/Interrupt name entry is not mandatory for sensor submodules.
Change log level will print warning message instead of error message for
submodule which does not have reg-names/interrupt-names DT entries.

Change-Id: Ib7de18a3f982a3a1d52390636d675c9466b7a507
Signed-off-by: default avatarSuresh Vankadara <svankada@codeaurora.org>
parent 402d0caa
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -766,7 +766,8 @@ int cam_soc_util_get_dt_properties(struct cam_hw_soc_info *soc_info)

	count = of_property_count_strings(of_node, "reg-names");
	if (count <= 0) {
		CAM_ERR(CAM_UTIL, "no reg-names found");
		CAM_WARN(CAM_UTIL, "no reg-names found for: %s",
			soc_info->dev_name);
		count = 0;
	}
	soc_info->num_mem_block = count;
@@ -802,7 +803,8 @@ int cam_soc_util_get_dt_properties(struct cam_hw_soc_info *soc_info)
	rc = of_property_read_string_index(of_node, "interrupt-names", 0,
		&soc_info->irq_name);
	if (rc) {
		CAM_WARN(CAM_UTIL, "No interrupt line present");
		CAM_WARN(CAM_UTIL, "No interrupt line preset for: %s",
			soc_info->dev_name);
		rc = 0;
	} else {
		soc_info->irq_line =