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

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

power: smb350: improve smb350 driver



Improve the driver by implementing following changes
* rename suspend gpio to shutdown gpio - that is the correct name of
  the pin.
* passing the stat gpio and then mapping it to irq is
  unnecessary. Instead pass the interrupt information via device tree
  node.
* use threaded interrupts instead of a hard context handler invoking
  a workqueue.
* Create battery power supply and reorganize power supply properties
 between battery and dc.
* enable charging by default.
* refactor the probe function to separately
** parse dt files
** intialize hardware
** register power supply structures
** debugfs file creation

Change-Id: I825a20c1ce8f8f81265bfbe88f4822e22312e954
Signed-off-by: default avatarAbhijeet Dharmapurikar <adharmap@codeaurora.org>
parent 8b606f17
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