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

Commit b635b43f authored by Camera Software Integration's avatar Camera Software Integration Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: camera: flash: Init default flash type to PMIC flash" into camera-kernel.lnx.4.0

parents fa93505c 5bf8f7b7
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);