msm: camera: Add support for reading new property tag

Add support to read new current property tag from PMIC LED.
This parameter is used for torch mode.

CRs-Fixed: 1021009
Change-Id: I368a8bc2760d4f8bed847aefae59af2839e828cd
Signed-off-by: Viswanadha Raju Thotakura <viswanad@codeaurora.org>
This commit is contained in:
Viswanadha Raju Thotakura 2016-08-03 18:25:39 -07:00 committed by Gerrit - the friendly Code Review server
parent e94b446eac
commit a2698f4948

View file

@ -846,9 +846,14 @@ static int32_t msm_flash_get_pmic_source_info(
"qcom,current",
&fctrl->torch_op_current[i]);
if (rc < 0) {
pr_err("current: read failed\n");
of_node_put(torch_src_node);
continue;
rc = of_property_read_u32(torch_src_node,
"qcom,current-ma",
&fctrl->torch_op_current[i]);
if (rc < 0) {
pr_err("current: read failed\n");
of_node_put(torch_src_node);
continue;
}
}
/* Read max-current */