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:
parent
e94b446eac
commit
a2698f4948
1 changed files with 8 additions and 3 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Reference in a new issue