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

Commit 3420c5cb authored by Xu Han's avatar Xu Han Committed by Matt Wagantall
Browse files

msm: camera: read flash duration from dtsi



This change enables sensor to read the max flash duration from
the dtsi node.

Change-Id: Ibc534c773875e9b77ff3bde31c9c29474f9a1f34
Signed-off-by: default avatarXu Han <hanxu@codeaurora.org>
parent 9e71e4c6
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -815,6 +815,16 @@ static int32_t msm_flash_get_pmic_source_info(
				continue;
			}

			/* Read max-duration */
			rc = of_property_read_u32(flash_src_node,
				"qcom,duration",
				&fctrl->flash_max_duration[i]);
			if (rc < 0) {
				pr_err("duration: read failed\n");
				of_node_put(flash_src_node);
				continue;
			}

			of_node_put(flash_src_node);

			CDBG("max_current[%d] %d\n",