power: smb358: Add snapshot of smb358 charger
Add snapshot of the smb358 charger as of msm-5.4
commit b4f92443227f8 ("smb358: Add snapshot of smb358 charger").
Fix minor static analysis tool errors.
Change-Id: I3610831152cc545a9fc2c20e4abb5c04989e7408
Signed-off-by: Ravi Ranjan Kumar <quic_ravirk@quicinc.com>
This commit is contained in:
parent
d2fad072d1
commit
a8f5aaa528
3 changed files with 2732 additions and 0 deletions
|
|
@ -62,5 +62,15 @@ config SMB1355_SLAVE_CHARGER
|
|||
The driver reports the charger status via the power supply framework.
|
||||
A charger status change triggers an IRQ via the device STAT pin.
|
||||
|
||||
config SMB358_CHARGER
|
||||
tristate "SMB358 Battery Charger"
|
||||
depends on I2C
|
||||
help
|
||||
Say Y to include support for SMB358 Battery Charger.
|
||||
SMB358 is a single path switching mode charger capable of charging
|
||||
the battery with 2Amps of current.
|
||||
The driver supports charger enable/disable.
|
||||
The driver reports the charger status via the power supply framework.
|
||||
A charger status change triggers an IRQ via the device STAT pin.
|
||||
endif
|
||||
|
||||
|
|
|
|||
|
|
@ -8,3 +8,4 @@ obj-$(CONFIG_SMB1398_CHARGER) += qcom-smb1398-charger.o
|
|||
qcom-smb1398-charger-y += smb1398-charger.o
|
||||
obj-$(CONFIG_SMB1355_SLAVE_CHARGER) += qcom-smb1355-charger.o
|
||||
qcom-smb1355-charger-y += smb1355-charger.o
|
||||
obj-$(CONFIG_SMB358_CHARGER) += smb358-charger.o
|
||||
|
|
|
|||
2721
drivers/power/supply/qcom/smb358-charger.c
Normal file
2721
drivers/power/supply/qcom/smb358-charger.c
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue