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

Commit 631c9883 authored by Nishant Pandit's avatar Nishant Pandit
Browse files

msm: camera: Avoid led off trigger during init



Avoid led off trigger during init to save the camera initialization
time. When led modes are called - off, low, high, the correct triggers
are passed to the led framework.

Change-Id: I88b733e2be6b1b6d1dc89fd0565412b06d7b0fa1
Signed-off-by: default avatarNishant Pandit <npandit@codeaurora.org>
parent 1aa24ca3
Loading
Loading
Loading
Loading
+9 −7
Original line number Diff line number Diff line
@@ -475,6 +475,7 @@ static int32_t msm_flash_init(
			flash_data->cfg.flash_init_info->flash_driver_type);
	}

	if (flash_ctrl->func_tbl->camera_flash_init) {
		rc = flash_ctrl->func_tbl->camera_flash_init(
				flash_ctrl, flash_data);
		if (rc < 0) {
@@ -482,6 +483,7 @@ static int32_t msm_flash_init(
				__func__, __LINE__, rc);
			return rc;
		}
	}

	flash_ctrl->flash_state = MSM_CAMERA_FLASH_INIT;

@@ -1180,7 +1182,7 @@ static void __exit msm_flash_exit_module(void)
static struct msm_flash_table msm_pmic_flash_table = {
	.flash_driver_type = FLASH_DRIVER_PMIC,
	.func_tbl = {
		.camera_flash_init = msm_flash_off,
		.camera_flash_init = NULL,
		.camera_flash_release = msm_flash_release,
		.camera_flash_off = msm_flash_off,
		.camera_flash_low = msm_flash_low,