mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 21:59:12 -04:00
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: Anil Kumar Kanakanti <akanakan@codeaurora.org>
This commit is contained in:
parent
e40030134a
commit
5bf8f7b7ae
1 changed files with 2 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue