Merge "msm: camera: sensor: Detect flash_driver_type from dtsi"
This commit is contained in:
commit
d4e8e50daa
1 changed files with 8 additions and 7 deletions
|
@ -920,6 +920,14 @@ static int32_t msm_flash_get_dt_data(struct device_node *of_node,
|
||||||
fctrl->flash_driver_type = FLASH_DRIVER_I2C;
|
fctrl->flash_driver_type = FLASH_DRIVER_I2C;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Read the flash and torch source info from device tree node */
|
||||||
|
rc = msm_flash_get_pmic_source_info(of_node, fctrl);
|
||||||
|
if (rc < 0) {
|
||||||
|
pr_err("%s:%d msm_flash_get_pmic_source_info failed rc %d\n",
|
||||||
|
__func__, __LINE__, rc);
|
||||||
|
return rc;
|
||||||
|
}
|
||||||
|
|
||||||
/* Read the gpio information from device tree */
|
/* Read the gpio information from device tree */
|
||||||
rc = msm_sensor_driver_get_gpio_data(
|
rc = msm_sensor_driver_get_gpio_data(
|
||||||
&(fctrl->power_info.gpio_conf), of_node);
|
&(fctrl->power_info.gpio_conf), of_node);
|
||||||
|
@ -934,13 +942,6 @@ static int32_t msm_flash_get_dt_data(struct device_node *of_node,
|
||||||
CDBG("%s:%d fctrl->flash_driver_type = %d", __func__, __LINE__,
|
CDBG("%s:%d fctrl->flash_driver_type = %d", __func__, __LINE__,
|
||||||
fctrl->flash_driver_type);
|
fctrl->flash_driver_type);
|
||||||
|
|
||||||
/* Read the flash and torch source info from device tree node */
|
|
||||||
rc = msm_flash_get_pmic_source_info(of_node, fctrl);
|
|
||||||
if (rc < 0) {
|
|
||||||
pr_err("%s:%d msm_flash_get_pmic_source_info failed rc %d\n",
|
|
||||||
__func__, __LINE__, rc);
|
|
||||||
return rc;
|
|
||||||
}
|
|
||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue