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

Skip to content
Commit 407f4bd2 authored by Abinaya P's avatar Abinaya P
Browse files

leds: leds-qpnp: check if flash_wa regulator is obtained before enabling



The flash led requires the use of an optional regulator, "flash_wa_reg".
This regulator is enabled without checking if the regulator is obtained
or not. Hence, a check is made before enabling/disabing the regulator to
ensure that the "flash_wa_reg" is obtained first.

Change-Id: I8fda00274ad3bc21d9ed32d0f3f2ca09e1079f87
Signed-off-by: default avatarAbinaya P <abinayap@codeaurora.org>
parent 222660dd
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment