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

Commit 4c2cc6f7 authored by Xu Han's avatar Xu Han Committed by Matt Wagantall
Browse files

msm: camera: fix flash duration update



This change allows an update to flash duration in kernel
based on flash library, for non-default flash types.

Change-Id: Ib12c9b4315738bba15ef9d7375a3d3795b3a08c3
Signed-off-by: default avatarXu Han <hanxu@codeaurora.org>
parent 2de4dfb7
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -452,8 +452,8 @@ static int32_t msm_flash_init(
		for (i = 0; i < MAX_LED_TRIGGERS; i++) {
			flash_ctrl->flash_max_current[i] =
				flash_data->flash_current[i];
			flash_data->flash_duration[i] =
				flash_ctrl->flash_max_duration[i];
			flash_ctrl->flash_max_duration[i] =
					flash_data->flash_duration[i];
		}
	}