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

Skip to content
Commit 7397ff81 authored by Abhijeet Dharmapurikar's avatar Abhijeet Dharmapurikar
Browse files

power: smb135x-charger: fix the type of dc_psy_type



The driver uses enum to track whether dc_psy_type is valid. It sets
it to -EINVAL if its not valid. However, enums are unsigned integers
and checking it against negative values is always going to fail. Fix
this by changing the type to an integer.

Change-Id: Icb8a23a1b4660503f68edf6cdcca7d39c1ebfcb2
Signed-off-by: default avatarAbhijeet Dharmapurikar <adharmap@codeaurora.org>
parent 416e5ce5
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