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

Skip to content
Commit 6b4884f8 authored by Subbaraman Narayanamurthy's avatar Subbaraman Narayanamurthy
Browse files

power: qpnp-fg-gen4: Optimize parsing DT parameters



Currently, while parsing u32 parameters from the device tree,
default values are set only if there is an error. If there is no
error, values read from DT property is set. Fix the redundancy
by setting default value first and then let the value be
overridden when property is read from DT.

Parse reading from revid phandle, child node parameters and
capacity learning parameters from device tree in a separate
function to reduce cyclomatic complexity warnings.

Change-Id: I155c999a12fb9bb124eab7f5de3ea6d3b369c33e
Signed-off-by: default avatarSubbaraman Narayanamurthy <subbaram@codeaurora.org>
parent a0ea5cbb
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