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

Commit 5a7da6d1 authored by shiwgupt's avatar shiwgupt
Browse files

msm: camera: flash: Add qti flash property for scuba



Add qti flash property with updated max current DT property

CRs-Fixed: 2655601
Change-Id: Ic52a0bdae81347f5dc9f1bbe6560ae67f6e13de0
Signed-off-by: default avatarshiwgupt <shiwgupt@codeaurora.org>
parent a240e4e6
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
// SPDX-License-Identifier: GPL-2.0-only
/*
 * Copyright (c) 2017-2018, The Linux Foundation. All rights reserved.
 * Copyright (c) 2017-2018, 2020, The Linux Foundation. All rights reserved.
 */

#include <linux/of.h>
@@ -94,6 +94,9 @@ static int32_t cam_get_source_node_info(
				rc = of_property_read_u32(flash_src_node,
					"qcom,max-current",
					&soc_private->flash_max_current[i]);
				rc &= of_property_read_u32(flash_src_node,
					"qcom,max-current-ma",
					&soc_private->flash_max_current[i]);
				if (rc < 0) {
					CAM_WARN(CAM_FLASH,
					"LED FLASH max-current read fail: %d",
@@ -180,6 +183,9 @@ static int32_t cam_get_source_node_info(
				rc = of_property_read_u32(torch_src_node,
					"qcom,max-current",
					&soc_private->torch_max_current[i]);
				rc &= of_property_read_u32(torch_src_node,
					"qcom,max-current-ma",
					&soc_private->torch_max_current[i]);
				if (rc < 0) {
					CAM_WARN(CAM_FLASH,
					"LED-TORCH max-current read failed: %d",