power: supply: bq27xxx_battery: Notify also about status changes
authorKrzysztof Kozlowski <krzk@kernel.org>
Fri, 26 Apr 2019 09:59:02 +0000 (11:59 +0200)
committerSebastian Reichel <sre@kernel.org>
Wed, 1 May 2019 22:27:29 +0000 (00:27 +0200)
commit243f8ffc883a120516b1280c799b2e5081169efd
tree6763b0b0060fb8ca4ca5cb8ca2751e8db535a45c
parent231a13d93d5169600f161601de8a25c7bd31af44
power: supply: bq27xxx_battery: Notify also about status changes

User-space might be interested in receiving uevents when the charging
starts/stops or if conditions of battery changes (e.g.
over-temperature).  Notify about changes in battery also when the flags
change, not only SoC.

Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
Reviewed-by: Pali Rohár <pali.rohar@gmail.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/bq27xxx_battery.c