OSDN Git Service

power: qpnp-fg-gen3: Use votable for controlling delta_bsoc irq
authorSubbaraman Narayanamurthy <subbaram@codeaurora.org>
Wed, 15 Mar 2017 19:47:00 +0000 (12:47 -0700)
committerSubbaraman Narayanamurthy <subbaram@codeaurora.org>
Thu, 30 Mar 2017 01:32:32 +0000 (18:32 -0700)
commit30e3afea9340dc2a0e105dfefe0b5d99050b5c34
treee0cb58c7ba96a7a7df9e8b1f3d9016f0db8cb03e
parent664cdd33f956accabebd29edba6c220b1580744d
power: qpnp-fg-gen3: Use votable for controlling delta_bsoc irq

Instead of using a flag to retain the interrupt enabled status
of delta_bsoc interrupt, switch it to use a votable instead. This
improves the readability of code by not worrying about the flag.

While at it, fix cleaning up the resources in some error paths
during driver probe.

Change-Id: I2c17a9d90c7b549435caa75da81f4c4779ea3344
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
drivers/power/supply/qcom/fg-core.h
drivers/power/supply/qcom/qpnp-fg-gen3.c