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

Commit 5bf8f7b7 authored by Anil Kumar Kanakanti's avatar Anil Kumar Kanakanti
Browse files

msm: camera: flash: Init default flash type to PMIC flash



Initialize default flash type to PMIC flash.

CRs-Fixed: 2969985
Change-Id: Id563435f78b7412362bd1f6a1db53cbdfc3664cc
Signed-off-by: default avatarAnil Kumar Kanakanti <akanakan@codeaurora.org>
parent e4003013
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -7,6 +7,7 @@
#include <linux/of_gpio.h>
#include "cam_flash_soc.h"
#include "cam_res_mgr_api.h"
#include <dt-bindings/msm/msm-camera.h>

void cam_flash_put_source_node_data(struct cam_flash_ctrl *fctrl)
{
@@ -77,6 +78,7 @@ static int32_t cam_get_source_node_info(
	if (rc) {
		CAM_ERR(CAM_FLASH,
			"flash-type read failed rc=%d", rc);
		soc_private->flash_type = CAM_FLASH_TYPE_PMIC; // default to PMIC flash
	}

	switch_src_node = of_parse_phandle(of_node, "switch-source", 0);