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

Commit fff3bad1 authored by shiwgupt's avatar shiwgupt
Browse files

msm: camera: flash: Add support for regulator disable



Add support to disable regulator in release dev

CRs-Fixed: 2726194
Change-Id: I9c14989c9902ecdba8a84af0a0a029d8b98a2362
Signed-off-by: default avatarshiwgupt <shiwgupt@codeaurora.org>
parent 894b9357
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -201,8 +201,13 @@ int cam_flash_pmic_power_ops(struct cam_flash_ctrl *fctrl,
	}

	if (!regulator_enable) {
		if ((fctrl->flash_state == CAM_FLASH_STATE_START) &&
		if (((fctrl->flash_state == CAM_FLASH_STATE_START) ||
			(fctrl->flash_state == CAM_FLASH_STATE_ACQUIRE)) &&
			(fctrl->is_regulator_enabled == true)) {
			/*
			 * Release dev is called after stop dev and in
			 * stop dev flash state is set to acquire dev.
			 */
			rc = cam_flash_prepare(fctrl, false);
			if (rc)
				CAM_ERR(CAM_FLASH,