mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 05:39:54 -04:00
Merge "msm: camera: flash: Init default flash type to PMIC flash" into camera-kernel.lnx.4.0
This commit is contained in:
commit
b635b43f6c
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