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

Skip to content
Commit 12502eea authored by Xiaozhe Shi's avatar Xiaozhe Shi
Browse files

power: qpnp-smbcharger: fix hardware initialization sequence



Currently, in the function smbchg_hw_init, the return value of the call
to smbchg_set_thermal_limited_dc_current_max is always returned. This is
incorrect and will cause the rest of the hw_init function to never run.

Fix this by checking the return code and only returning if it's
non-zero.

Change-Id: I9de4862c3c54fa9a9183245b3bf53564c3f635d0
Signed-off-by: default avatarXiaozhe Shi <xiaozhes@codeaurora.org>
parent d5fc7ff6
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