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

This commit is contained in:
Camera Software Integration 2021-06-25 01:26:22 -07:00 • committed by Gerrit - the friendly Code Review server
commit b635b43f6c

View file

@ -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);