OSDN Git Service

leds: qpnp-flash-v2: add support to query battery parameters
authorDevesh Jhunjhunwala <deveshj@codeaurora.org>
Fri, 8 Jul 2016 01:09:08 +0000 (18:09 -0700)
committerDevesh Jhunjhunwala <deveshj@codeaurora.org>
Wed, 3 Aug 2016 18:35:18 +0000 (11:35 -0700)
commite92b084360acd2c77971e1ab9a505c066316ca7e
tree654656c71c21cbe633e392902781e0507b837996
parent60aacdb787e6040d86bea2cd54897085a638a728
leds: qpnp-flash-v2: add support to query battery parameters

Register a notifier callback with the power_supply framework
to detect when the bms power_supply is available so that
it can be used to query the battery properties required from
the fuel gauge for the maximum current query algorithm.

CRs-Fixed: 1043718
Change-Id: Icd535025a2f888e188f89841f32ac5b822f9b20d
Signed-off-by: Devesh Jhunjhunwala <deveshj@codeaurora.org>
drivers/leds/leds-qpnp-flash-v2.c