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

Commit 25aa9b5a authored by Subbaraman Narayanamurthy's avatar Subbaraman Narayanamurthy
Browse files

power: qpnp-smbcharger: Remove a redundant find_first_bit



Currently get_usb_type_name() and get_usb_supply_type() both uses
the find_first_bit() to determine type name and supply type. Instead
of using find_first_bit multiple times, call it once by using
get_type() and use at multiple places.

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