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

Commit 59e9e8c8 authored by David Collins's avatar David Collins Committed by Saravana Kannan
Browse files

ANDROID: GKI: regulator: Remove redundant set_mode call in drms_uA_update



The regulator framework checks if the current mode is the same as the
one being requested inside of regulator_set_mode. However, when
DRMS changing is allowed, regulator_enable calls drms_uA_update.
This function does not check the value of get_mode before calling
set_mode.

Modify drms_uA_update so that set_mode is only called if the requested
mode is different from the current mode returned by get_mode.

Bug: 150508586
Change-Id: Ifb4f3069cf946e8474565ee82508c1ff45b36543
Signed-off-by: default avatarDavid Collins <collinsd@codeaurora.org>
(cherry picked from commit 4c40b0f7)
Signed-off-by: default avatarSaravana Kannan <saravanak@google.com>
parent 8ba14953
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