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

Commit 19bba642 authored by Vijay kumar Tumati's avatar Vijay kumar Tumati
Browse files

msm: camera: Use the right flag to fetch max flash current



Modify the flag being used in camera to be in consistent with
the code on PMIC side.

Change-Id: I7007171e1a3345ae2f94538c0b65b12204a8c017
Signed-off-by: default avatarVijay kumar Tumati <vtumati@codeaurora.org>
parent 106b3660
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
/* Copyright (c) 2009-2018, The Linux Foundation. All rights reserved.
/* Copyright (c) 2009-2019, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -727,7 +727,7 @@ static int32_t msm_flash_query_current(

	if (flash_ctrl->switch_trigger) {
		ret = qpnp_flash_led_prepare(flash_ctrl->switch_trigger,
					QUERY_MAX_CURRENT, &max_current);
					QUERY_MAX_AVAIL_CURRENT, &max_current);
		if (ret < 0) {
			pr_err("%s:%d Query max_avail_curr failed ret = %d\n",
				__func__, __LINE__, ret);